:root {
  --navy: #1d3557;
  --navy-deep: #132643;
  --ink: #142033;
  --muted: #5a6577;
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --amber: #f4a261;
  --amber-deep: #d9741a;
  --amber-soft: #fdf1e6;
  --ok: #1f9d6b;
  --warn: #c97a12;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(19, 38, 67, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(29, 53, 87, 0.8);
}
.btn-primary:hover {
  background: var(--navy-deep);
}
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #c9d2e0;
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-amber:hover {
  background: #f6b27c;
}
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand img {
  height: 44px;
  width: auto;
}
.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--bg-alt);
}
.menu {
  display: none;
  margin-left: auto;
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  gap: 5px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: 54px;
  width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.menu-panel a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--navy);
}
.menu-panel .btn {
  margin-top: 6px;
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(244, 162, 97, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), #fff);
  padding: 72px 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--navy-deep);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 560px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.actions.center {
  justify-content: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}
.checks li,
.included li,
.plan li {
  position: relative;
  padding-left: 28px;
}
.checks li::before,
.included li::before,
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9741a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* app preview (drawing only) */
.preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dbe5;
}
.preview-bar b {
  margin-left: 10px;
  font-size: 13px;
  color: var(--muted);
}
.preview-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 2px;
}
.tile small {
  color: var(--muted);
  font-size: 11px;
}
.tile strong {
  font-size: 16px;
  color: var(--navy-deep);
}
.tile em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
}
.tile em.warn {
  color: var(--warn);
}
.chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, var(--bg-alt));
}
.chart i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--navy), #3a5f92);
}
.chart i:nth-child(6) {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
}
.rows {
  display: grid;
  gap: 6px;
}
.rows p {
  margin: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 8px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--muted);
}
.rows b {
  color: var(--ink);
}

/* ---------- sections ---------- */
.section {
  padding: 84px 0;
}
.section.alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  text-align: center;
  color: var(--navy-deep);
}
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 14px auto 0;
}
.section-title.left,
.section-lead.left {
  text-align: left;
  margin-left: 0;
}

.features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature h3 {
  font-size: 17px;
  margin-top: 14px;
}
.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-soft);
  display: grid;
  place-items: center;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  margin: 8px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.trust li {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 2px;
}
.trust span {
  color: var(--muted);
}

.faq {
  max-width: 820px;
}
.faq .section-title {
  margin-bottom: 28px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 18px 28px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  color: var(--amber-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.cta {
  padding: 0 0 84px;
}
.section.alt + .cta {
  padding-top: 84px;
}
.cta-box {
  max-width: 1100px;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: 22px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-box h2 {
  font-size: 28px;
}
.cta-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}
.cta-box .actions {
  margin: 0;
}

/* ---------- inner pages ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(244, 162, 97, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), #fff);
  padding: 72px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  color: var(--navy-deep);
}
.page-hero .lead {
  margin: 16px auto 0;
}
.page-hero .updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.not-found {
  padding: 110px 0 120px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
}
.badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
}
.plan h3 {
  font-size: 22px;
}
.plan-for {
  margin: 6px 0 0;
  color: var(--muted);
}
.price {
  margin: 22px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.included {
  margin-top: 48px;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 32px;
}
.included h2 {
  font-size: 22px;
  color: var(--navy-deep);
}
.included ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}

.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 24px;
  color: var(--navy-deep);
  margin: 36px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.75;
  color: #2a3547;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 6px;
}
.prose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.card h2 {
  font-size: 22px;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.plain-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 17px;
}
.contact-card {
  background: linear-gradient(160deg, #fff, var(--amber-soft));
}
.contact-card p {
  font-size: 17px;
}
.muted {
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.footer-brand img {
  height: 42px;
  width: auto;
}
.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 4px 0;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 860px) {
  .nav,
  .header-signin {
    display: none;
  }
  .menu {
    display: block;
  }
  .steps,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .features,
  .included ul,
  .tiles {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .section {
    padding: 60px 0;
  }
  .cta-box {
    padding: 30px 24px;
  }
  .brand img {
    height: 38px;
  }
}

/* ---------- sign in ---------- */
.signin-section {
  padding-top: 24px;
}
.signin-card {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.signin-card label {
  font-weight: 700;
}
.address-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #c9d2e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.address-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.12);
}
.address-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 4px 13px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.address-field span {
  padding-right: 14px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.field-error {
  margin: -4px 0 0;
  color: #b42318;
  font-size: 14px;
}
.small {
  font-size: 14px;
  margin: 0;
}
.owner-link {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
}
.owner-link a {
  color: var(--muted);
}
@media (max-width: 420px) {
  .address-field span {
    font-size: 13px;
    padding-right: 10px;
  }
}
