/* ============================================================
   Landed — marketing, pricing, and account pages.

   Direction: the confidence of a financial instrument, not a
   generic SaaS pricing grid. Navy is used as a real ground
   rather than as an accent on white; the featured plan is
   genuinely elevated instead of merely outlined; prices are set
   in tabular figures because the numbers ARE the content.

   Display face is Outfit — geometric with rounded terminals,
   chosen to match the letterforms in the Landed wordmark.
   Palette sampled from the logo artwork:
     navy #001830 / #0C2448   blue #0060D8 / #006CE4
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --ink-inv: rgba(255, 255, 255, .74);
  --hairline: rgba(255, 255, 255, .13);

  --shadow-card: 0 1px 2px rgba(0, 24, 48, .05),
                 0 8px 24px -12px rgba(0, 24, 48, .16);
  --shadow-lift: 0 2px 4px rgba(0, 24, 48, .06),
                 0 28px 56px -24px rgba(0, 96, 216, .45);

  --display: "Outfit", "Open Sans", system-ui, sans-serif;
}

body.marketing { background: var(--surface); overflow-x: hidden; }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.028em; }

/* ── Chrome ─────────────────────────────────────────────── */

.brand-logo { height: 30px; width: auto; display: block; }

.marketing-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.marketing-nav a {
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.marketing-nav a:hover { background: var(--blue-wash); color: var(--brand-blue); }
.marketing-nav a.active { color: var(--brand-blue); background: var(--blue-wash); }

.pricing-page { max-width: 1140px; margin: 0 auto; padding: 0 24px 96px; }

/* ── Hero: full-bleed navy band ─────────────────────────── */

.hero {
  position: relative;
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 84px 24px 132px;
  background: var(--brand-navy-deep);
  overflow: hidden;
}

/* Faint grid: texture with a reason, echoing a price sheet. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 108, 228, .34) 0%, transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  color: #fff;
  max-width: 17ch;
  margin: 0 auto 18px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-inv);
  margin: 0 auto 34px;
  max-width: 46ch;
}

.interval-toggle {
  display: inline-flex;
  padding: 5px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.interval {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-inv);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background .18s, color .18s;
}
.interval:hover { color: #fff; }
.interval.active { background: #fff; color: var(--brand-navy-deep); }
.interval .save {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}
.interval.active .save { background: var(--green-wash); color: var(--green); }

/* ── Notice ─────────────────────────────────────────────── */

.notice {
  max-width: 700px;
  margin: -104px auto 26px;
  position: relative;
  z-index: 3;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: center;
}
.notice strong { color: var(--brand-navy); }
.notice code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── Plans, lifted over the hero ────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
  align-items: start;
  margin: -78px 0 96px;
  position: relative;
  z-index: 2;
}
/* When the notice is showing it already broke the overlap, so don't double up. */
.notice:not([hidden]) ~ .plans { margin-top: 0; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-card);
  animation: rise .4s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* The plan most shops should buy is genuinely elevated — raised and carrying
   the brand blue, not merely outlined like the others. */
.plan.featured {
  padding-top: 42px;
  transform: translateY(-14px);
  border: 2px solid transparent;
  box-shadow: var(--shadow-lift);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, var(--brand-blue), #0aa2ff) border-box;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(140deg, var(--brand-blue), #0a84ff);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 6px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(0, 96, 216, .7);
}

.plan-name {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}
.plan-tagline {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 26px;
  min-height: 42px;
}

.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--brand-navy-deep);
  font-variant-numeric: tabular-nums;
  line-height: .95;
}
.plan-price .per { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan-billed { font-size: 12.5px; color: var(--muted); margin: 9px 0 24px; min-height: 18px; }

.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.plan-limits strong { color: var(--brand-navy); font-weight: 700; }

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.plan-features svg { color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }

/* ── Buttons ────────────────────────────────────────────── */

.btn-lg {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  border-radius: 9px;
  border: 1px solid var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s, border-color .16s, transform .12s, filter .16s;
}
.btn-lg:hover { background: var(--brand-navy-deep); border-color: var(--brand-navy-deep); }
.btn-lg:active { transform: translateY(1px); }
.btn-lg:disabled { opacity: .55; cursor: default; }

.plan.featured .btn-lg {
  background: linear-gradient(140deg, var(--brand-blue), #0a7bf0);
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(0, 96, 216, .65);
}
.plan.featured .btn-lg:hover { filter: brightness(1.07); }

.btn-lg.ghost { background: #fff; color: var(--brand-navy); border-color: var(--line); }
.btn-lg.ghost:hover { border-color: var(--brand-navy); background: var(--surface-2); }

.plan-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }

/* ── Assurance ──────────────────────────────────────────── */

.assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 96px;
}
.assurance > div { padding: 30px 28px; border-right: 1px solid var(--line); }
.assurance > div:last-child { border-right: none; }
.assurance h3 {
  font-family: var(--display);
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 9px;
}
.assurance p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

/* ── Comparison ─────────────────────────────────────────── */

.compare { margin-bottom: 96px; }
.compare h2, .faq h2, .closer h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 26px;
  text-align: center;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--brand-navy-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  border-bottom: none;
  padding: 18px;
}
.compare-table .th-price {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-inv);
  margin-top: 4px;
}
.compare-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 216px;
}
.compare-table tbody tr:nth-child(even) { background: #fcfdfe; }
.compare-table .featured-col { background: var(--blue-wash); }
.compare-table tbody tr:nth-child(even) .featured-col { background: #e2eefc; }
.compare-table thead .featured-col { background: var(--brand-blue); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--brand-blue); display: inline-flex; }
.compare-table .no { color: #c3c9d2; }
.compare-table .val { font-weight: 700; color: var(--brand-navy); }

/* ── Comparison, phone version ──────────────────────────── */

/* Hidden by default; the media query swaps which of the two is shown. */
.compare-mobile { display: none; }

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 6px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .16s, color .16s, box-shadow .16s;
}
.pick:hover { color: var(--brand-navy); }
.pick.active {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: var(--shadow-card);
}
.pick-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.pick-price {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pick.active .pick-price { color: var(--brand-blue); }
.pick-price small { font-size: 10px; font-weight: 600; color: var(--muted); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li.off { color: var(--faint); }

.fl-icon { display: inline-flex; justify-content: center; color: #c3c9d2; }
.fl-icon.on { color: var(--brand-blue); }
.fl-label { line-height: 1.35; }
.feature-list li.off .fl-label { color: var(--muted); }
.fl-value {
  font-weight: 700;
  color: var(--brand-navy);
  text-align: right;
  white-space: nowrap;
}
.feature-list li.off .fl-value { font-weight: 600; color: var(--faint); font-size: 12.5px; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { max-width: 780px; margin: 0 auto 96px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--blue-edge); box-shadow: var(--shadow-card); }
.faq summary {
  padding: 17px 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .22s ease;
  margin-top: -5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq details p {
  margin: 0;
  padding: 0 20px 19px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ── Closer ─────────────────────────────────────────────── */

.closer {
  text-align: center;
  background: var(--brand-navy-deep);
  border-radius: 16px;
  padding: 62px 32px;
  position: relative;
  overflow: hidden;
}
.closer::after {
  content: "";
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(circle, rgba(0, 108, 228, .35) 0%, transparent 68%);
}
.closer > * { position: relative; z-index: 1; }
.closer h2 { color: #fff; margin-bottom: 12px; }
.closer p {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--ink-inv);
  line-height: 1.65;
  font-size: 15.5px;
}
.closer .btn-lg {
  display: inline-block;
  width: auto;
  padding: 15px 38px;
  background: #fff;
  color: var(--brand-navy-deep);
  border-color: #fff;
}
.closer .btn-lg:hover { background: #eef2f7; border-color: #eef2f7; }

/* ── Footer ─────────────────────────────────────────────── */

.marketing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 32px 24px 48px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Account / auth ─────────────────────────────────────── */

.account-page { max-width: 940px; }

.auth-intro { text-align: center; padding: 56px 0 30px; }
.auth-intro h1 {
  font-family: var(--display);
  font-size: clamp(27px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--brand-navy-deep);
  margin-bottom: 12px;
}
.auth-intro p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto;
}

.auth-mount { display: flex; justify-content: center; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-alt a { font-weight: 700; }

.org-switcher, .user-button { display: inline-flex; align-items: center; }

.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  padding: 48px 0 24px;
}
.account-head h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 800;
  color: var(--brand-navy-deep);
  margin-bottom: 5px;
}
.account-head .breadcrumb {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
}

.trial-badge {
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
}
.trial-badge.active { background: var(--green-wash); color: var(--green); }
.trial-badge.ended { background: var(--amber-wash); color: var(--amber); }

.trial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.trial-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  margin-bottom: 18px;
}
.trial-bar span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--brand-blue), #0a9dff);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.2, .7, .3, 1);
}

.trial-detail { margin: 0 0 22px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

.trial-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.trial-facts .k {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}
.trial-facts .v {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.account-card h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 9px;
}
.account-card p { margin: 0 0 15px; font-size: 14px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.account-card .soon {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 13px;
  flex: 0;
}
.account-card .btn-lg { flex: 0; }

.staff-section { margin-bottom: 70px; }
.section-intro { margin-bottom: 22px; }
.section-intro h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 9px;
}
.section-intro p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 62ch; }
.staff-mount { display: flex; justify-content: center; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .assurance > div { border-right: none; border-bottom: 1px solid var(--line); }
  .assurance > div:last-child { border-bottom: none; }
}

@media (max-width: 760px) {
  /* The table needed ~527px to render three plans; below that it hid a third
     of itself behind a horizontal scroll. */
  .compare-scroll { display: none; }
  .compare-mobile { display: block; }
}

@media (max-width: 700px) {
  .hero { padding: 56px 20px 104px; }
  .plans { margin-top: -72px; gap: 16px; }
  .plan.featured { transform: none; }
  .plan { padding: 30px 22px 24px; }
  .plan-tagline { min-height: 0; }
  .closer { padding: 44px 22px; }
  .auth-intro { padding: 36px 0 22px; }
  .account-head { padding: 32px 0 18px; }
  .pricing-page { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
