/* Aftiva marketing site. One stylesheet for every page.
   Brand: ivory and pearl grounds, ink text, oxblood used sparingly. Cormorant Garamond for display, Jost for reading. */
:root {
  --ivory: #F8F4EF; --pearl: #FFFDFA; --cash: #EFE8DF; --oat: #E2D5C6; --sand: #C9B8A6;
  --taupe: #7D6B5B; --stone: #6B625C; --ink: #2A2522; --hair: #E3DACE; --ox: #8A4A47; --oxd: #6F3936; --oxt: #F4EAE8;
  --pow: #E5ECF2; --powd: #3F5163;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 48px); --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; }
h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--stone); max-width: 36em; }
.muted { color: var(--stone); }
.small { font-size: 14px; }
.note { font-size: 13.5px; color: var(--taupe); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; color: var(--ox); }
.brand span { font: 400 19px/1 var(--display); letter-spacing: .38em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .drop > button { font: 400 15px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav .drop > button:hover, .nav a[aria-current="page"] { background: var(--cash); }
.nav .demo { margin-left: 8px; background: var(--ink); color: var(--pearl); padding: 11px 18px; }
.nav .demo:hover { background: var(--oxd); }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
.menu { position: absolute; top: calc(100% + 8px); left: -12px; width: 560px; background: var(--pearl); border: 1px solid var(--hair); border-radius: 18px; padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 24px 60px -30px rgba(42, 37, 34, .35); }
.drop.open .menu { display: grid; }
.menu a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.menu a:hover { background: var(--ivory); }
.menu b { display: block; font-weight: 400; font-size: 15px; }
.menu span { display: block; font-size: 13px; color: var(--stone); line-height: 1.4; margin-top: 2px; }
.menu .all { grid-column: 1 / -1; border-top: 1px solid var(--hair); border-radius: 0 0 10px 10px; margin-top: 6px; padding-top: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 999px; background: var(--pearl); cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.4px; background: var(--ink); margin: 4px auto; }
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--ivory); border-bottom: 1px solid var(--hair); flex-direction: column; align-items: stretch; padding: 8px var(--gut) 20px; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > button { font-size: 17px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--hair); text-align: left; width: 100%; }
  .nav > a:hover, .nav .drop > button:hover, .nav a[aria-current="page"] { background: none; }
  .nav .demo { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; padding: 14px; }
  .drop > button::after { float: right; margin-top: 8px; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; background: none; }
  .menu a { padding: 10px 4px; }
  .menu .all { border-top: 0; margin: 0; padding-top: 10px; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 400 16px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.btn.dark { background: var(--ink); color: var(--pearl); }
.btn.dark:hover { background: var(--oxd); border-color: var(--oxd); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--sand); }
.btn.line:hover { border-color: var(--ink); }
.textlink { color: var(--ox); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.textlink:hover { color: var(--oxd); }

/* Screens: real app screenshots */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); background: var(--pearl); box-shadow: 0 40px 80px -50px rgba(42, 37, 34, .45); }
.phone { width: 100%; max-width: 280px; border-radius: 34px; padding: 8px; background: var(--ink); box-shadow: 0 36px 70px -40px rgba(42, 37, 34, .55); }
.phone img { border-radius: 27px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; width: 100%; }
.caption { font-size: 13.5px; color: var(--taupe); margin-top: 12px; }

/* Hero (home) */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; overflow: hidden; }
.hero .wrap.grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 30px; }
.hero .fine { margin-top: 22px; font-size: 14.5px; color: var(--stone); max-width: 30em; }
.hero-shot { margin-right: calc(-1 * max(var(--gut), (100vw - var(--max)) / 2 + var(--gut))); }
.hero-shot .shot { border-radius: 16px 0 0 16px; border-right: 0; }
@media (max-width: 860px) {
  .hero .wrap.grid { grid-template-columns: 1fr; }
  .hero-shot { margin-right: calc(-1 * var(--gut)); }
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(44px, 6vw, 72px); padding: 22px 0; border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--stone); }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ox); }

/* Sections */
.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.tint { background: var(--cash); }
.band.ink { background: #2A2522; color: #F3EEE8; }
.band.ink h2, .band.ink h3 { color: #F8F4EF; }
.band.ink .lead, .band.ink .muted { color: #C9BDB1; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { margin-bottom: 18px; }

/* The patient's journey (home): a real sequence */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .phone { max-width: none; }
.step-n { font: 400 44px/1 var(--display); color: var(--ox); }
.step h3 { font-size: 23px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--stone); line-height: 1.5; }
.step .when { font-size: 13px; color: var(--taupe); }
@media (max-width: 1080px) {
  .journey { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(240px, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .step { scroll-snap-align: start; }
}

/* Feature index */
.findex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.frow:hover h3 { color: var(--ox); }
.frow h3 { font-size: 26px; margin-bottom: 8px; transition: color .15s; }
.frow p { font-size: 15.5px; color: var(--stone); line-height: 1.55; }
.frow .more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ox); }
.frow img { border-radius: 10px; border: 1px solid var(--hair); aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
@media (max-width: 860px) { .findex { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .frow { grid-template-columns: 1fr; } .frow img { display: none; } }

/* Split: text beside a screen */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.split.flip .copy { order: 2; }
.split .copy h2 { margin-bottom: 20px; }
.split .copy .lead { margin-bottom: 26px; }
.split.phones { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.pair { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.pair .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 860px) { .split, .split.flip, .split.phones { grid-template-columns: 1fr; } .split.flip .copy { order: 0; } .pair .phone { max-width: 46%; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 1.4px solid var(--ox); border-bottom: 1.4px solid var(--ox); transform: rotate(-45deg); }
.band.ink .ticks li::before { border-color: #D9A29E; }

/* Who sees what */
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(243, 238, 232, .18); }
.access > div { padding: 28px 28px 8px 0; }
.access > div + div { padding-left: 28px; border-left: 1px solid rgba(243, 238, 232, .18); }
.access h3 { font-size: 26px; margin-bottom: 12px; }
.access p { font-size: 15.5px; color: #C9BDB1; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } .access > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(243, 238, 232, .18); } }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.story blockquote { margin: 0; font: 400 clamp(28px, 3.3vw, 42px)/1.2 var(--display); }
.facts { display: grid; gap: 0; }
.facts div { padding: 18px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: baseline; }
.facts b { font: 400 34px/1 var(--display); color: var(--ox); }
.facts span { font-size: 15px; color: var(--stone); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Price teaser */
.price { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.figure { font: 400 clamp(96px, 14vw, 180px)/0.85 var(--display); color: var(--ink); }
.figure small { font: 300 18px/1.4 var(--sans); color: var(--stone); display: block; margin-top: 14px; letter-spacing: 0; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* Closing call */
.close { text-align: left; }
.close h2 { max-width: 14em; margin-bottom: 18px; }
.close .lead { margin-bottom: 30px; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 56px 0 40px; font-size: 14.5px; color: var(--stone); }
.foot .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 400 14.5px/1 var(--sans); color: var(--ink); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* A text conversation drawn in a phone (no screenshot exists for SMS) */
.chat .chat-in { border-radius: 27px; background: #F3EEE8; aspect-ratio: 390 / 760; overflow: hidden; padding: 18px 10px; display: flex; flex-direction: column; gap: 7px; font-size: clamp(8.5px, .75vw, 11px); line-height: 1.35; }
.chat .who { text-align: center; font-size: .95em; color: var(--stone); padding-bottom: 10px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.chat .msg { max-width: 86%; padding: 7px 9px; border-radius: 12px; }
.chat .msg span { display: block; font-size: .8em; opacity: .6; margin-top: 4px; }
.chat .in { align-self: flex-start; background: var(--pearl); border: 1px solid var(--hair); border-bottom-left-radius: 5px; }
.chat .out { align-self: flex-end; background: var(--ox); color: #FBF4F2; border-bottom-right-radius: 5px; }

/* Screens beside text run off the page edge, like the hero */
.split:not(.flip) > .shot { margin-right: calc(-1 * max(var(--gut), (100vw - var(--max)) / 2 + var(--gut))); border-radius: 14px 0 0 14px; border-right: 0; }
@media (max-width: 860px) { .split:not(.flip) > .shot { margin-right: calc(-1 * var(--gut)); } }

.step-n, .facts b, .figure { font-variant-numeric: lining-nums; }
@media (max-width: 600px) { h1 br { display: none; } }

/* Inner pages */
.phero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.phero h1 { max-width: 15em; margin-bottom: 22px; }
.phero .lead { margin-bottom: 30px; max-width: 40em; }
.phero .lead:last-child { margin-bottom: 0; }
.crumb { margin-bottom: 18px; font-size: 14.5px; }
.crumb a { color: var(--ox); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.phero-media { margin-top: clamp(40px, 6vw, 72px); }
.phero-media .pair { justify-content: flex-start; gap: clamp(16px, 4vw, 48px); }
.phero-media .pair .phone { max-width: 300px; }
.phero-media .shot.tall { max-width: 560px; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.also > div { padding: 24px 0; border-top: 1px solid var(--hair); }
.also h3 { font-size: 24px; margin-bottom: 8px; }
.also p { font-size: 15.5px; color: var(--stone); }
@media (max-width: 860px) { .also { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .also { grid-template-columns: 1fr; } }
.quietpanel { background: var(--pearl); border: 1px solid var(--hair); border-radius: 16px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 10px; }
.quietpanel h3 { font-size: 26px; }
.quietpanel p { color: var(--stone); margin-bottom: 14px; }
.prose p { color: var(--stone); margin-bottom: 16px; max-width: 36em; }
.nextf { border-top: 1px solid var(--hair); }
.nextf a { display: grid; gap: 6px; padding: 40px 0; text-decoration: none; }
.nextf b { font: 400 clamp(30px, 3.4vw, 44px)/1.1 var(--display); }
.nextf a:hover b { color: var(--ox); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--pearl); border: 1px solid var(--hair); border-radius: 20px; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.plan.main { border-color: var(--ink); }
.plan-for { font-size: 14.5px; color: var(--ox); }
.plan h2 { font-size: 40px; }
.pfig { font: 400 88px/0.9 var(--display); font-variant-numeric: lining-nums; }
.pfig small { font: 300 17px/1 var(--sans); color: var(--stone); margin-left: 8px; }
.plan .btn { align-self: flex-start; margin-top: 6px; }
.catch { margin-top: 28px; max-width: 46em; color: var(--stone); }
.catch b { color: var(--ink); font-weight: 400; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.tblwrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 16px; background: var(--pearl); }
.cmp { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14.5px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.cmp thead th { font-weight: 400; color: var(--stone); font-size: 13.5px; }
.cmp tbody th { font-weight: 300; width: 28%; }
.cmp td { color: var(--stone); }
.cmp .us { background: var(--oxt); color: var(--ink); }
.cmp thead .us { color: var(--ox); font-weight: 500; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.faq details { border-top: 1px solid var(--sand); padding: 18px 0; }
.faq summary { cursor: pointer; font: 400 22px/1.25 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; color: var(--ox); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--stone); font-size: 15.5px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Moving: a real sequence */
.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.moves li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid var(--hair); }
.moves h3 { font-size: 25px; margin-bottom: 6px; }
.moves p { font-size: 15.5px; color: var(--stone); }
@media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }

/* Contact form */
.talk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .talk { grid-template-columns: 1fr; } }
.talk-form { background: var(--pearl); border: 1px solid var(--hair); border-radius: 20px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.talk-form label { display: grid; gap: 6px; font-size: 14.5px; }
.talk-form label i { font-style: normal; color: var(--taupe); }
.talk-form input, .talk-form select, .talk-form textarea { font: 300 16px/1.4 var(--sans); color: var(--ink); background: var(--ivory); border: 1px solid var(--sand); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.talk-form textarea { resize: vertical; }
.talk-form .bad { border-color: var(--ox); background: var(--oxt); }
.talk-form .hp { position: absolute; left: -9999px; }
.talk-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.talk-msg { font-size: 14.5px; color: var(--stone); }
.talk-msg.err { color: var(--ox); }
