/* La Telefonata — warm paper, terracotta, sage. Mobile first (390 px), one column; wider screens only get air. */
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif-display.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --cream: #FBF5EC; --paper: #FFFDF9; --ink: #2B2420; --ink2: #4A403A; --muted: #85786E; --line: #EADFD1;
  --terra: #C2593A; --terra-d: #A3462A; --terra-l: #F7E2D6; --sage: #5F7F68; --sage-l: #E5EEE4; --amber: #D9922E; --amber-l: #FBEFD9;
  --night: #241D1A; --night2: #342A25; --ok: #3E9A63; --no: #D2513B;
  --r: 22px; --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 10px 30px -12px rgba(60, 35, 20, .22);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --hand: 'Caveat', 'Segoe Print', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--terra-d); }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: 44px; }
h2 { font-size: 31px; }
h3 { font-size: 22px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hand { font-family: var(--hand); font-weight: 600; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 21px; color: var(--ink); text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F3B48F, var(--terra) 70%); display: grid; place-items: center; }
.logo i svg { width: 16px; height: 16px; }
.toplink { font-size: 15px; font-weight: 600; color: var(--ink2); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--terra); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(162, 70, 42, .7); transition: transform .12s, background .12s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--terra-d); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--paper); }
.btn.sage { background: var(--sage); box-shadow: 0 8px 20px -10px rgba(60, 90, 70, .8); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* home */
.hero { padding: 18px 0 8px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-d); background: var(--terra-l); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero .lead { margin-top: 16px; font-size: 18px; color: var(--ink2); }
.ctas { display: grid; gap: 12px; margin-top: 26px; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink2); }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust svg { flex: none; width: 20px; height: 20px; color: var(--sage); }

/* hero illustration: an incoming call and the note it becomes */
.scene { position: relative; margin: 34px 0 6px; height: 452px; }
.phone { position: absolute; left: 0; top: 0; width: 70%; height: 310px; border-radius: 34px; background: linear-gradient(170deg, var(--night2), var(--night)); color: #fff; padding: 26px 20px; box-shadow: 0 30px 60px -28px rgba(36, 29, 26, .8); overflow: hidden; }
.phone .when { font-size: 12px; opacity: .6; text-align: center; letter-spacing: .04em; }
.avatar { position: relative; width: 86px; height: 86px; margin: 22px auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6C3A0, var(--terra) 62%, #8E3B22); display: grid; place-items: center; font-family: var(--serif); font-size: 38px; color: #fff; }
.avatar::before, .avatar::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(246, 195, 160, .45); animation: ring 2.4s ease-out infinite; }
.avatar::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.phone .who { text-align: center; font-family: var(--serif); font-size: 24px; }
.phone .sub { text-align: center; font-size: 13px; opacity: .7; margin-top: 2px; }
.phone .keys { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-around; }
.key { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.key.ok { background: var(--ok); } .key.no { background: var(--no); }
.key svg { width: 24px; height: 24px; }
.note { position: absolute; right: 0; bottom: 0; width: 70%; background: var(--paper); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--shadow); transform: rotate(1.6deg); }
.note .nt { font-family: var(--hand); font-size: 24px; color: var(--terra-d); line-height: 1; }
.note p { font-size: 14px; line-height: 1.45; margin-top: 6px; color: var(--ink2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--sage-l); color: #3F5F48; }
.chip svg { width: 14px; height: 14px; }
.note .chip { margin-top: 10px; }

section.block { padding: 46px 0 6px; }
section.block > h2 { margin-bottom: 20px; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--r); padding: 20px 20px 20px 72px; position: relative; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--terra-l); color: var(--terra-d); font-family: var(--serif); font-size: 21px; display: grid; place-items: center; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { font-size: 16px; color: var(--ink2); }

/* summary card (home example, family page, end of call) */
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.sum .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sum .meta b { color: var(--ink2); font-weight: 700; }
.sum .text { font-size: 17px; line-height: 1.6; }
.sum .meds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.diff { margin-top: 16px; background: var(--amber-l); border-radius: 16px; padding: 14px 16px; border-left: 4px solid var(--amber); }
.diff b { display: block; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #94600F; margin-bottom: 4px; }
.diff p { font-size: 15px; color: #5C430F; }
.mood { padding: 3px 9px; border-radius: 999px; background: var(--terra-l); color: var(--terra-d); font-weight: 700; }

.honest { display: grid; gap: 18px; }
.honest div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.honest .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sage-l); color: var(--sage); display: grid; place-items: center; }
.honest .ic svg { width: 20px; height: 20px; }
.honest h3 { font-size: 19px; margin-bottom: 4px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.honest p { font-size: 15.5px; color: var(--ink2); }

.price { text-align: left; background: var(--night); color: #fff; border-radius: 28px; padding: 28px 24px; box-shadow: 0 30px 60px -30px rgba(36, 29, 26, .8); }
.price .amt { font-family: var(--serif); font-size: 56px; line-height: 1; }
.price .per { opacity: .7; margin: 6px 0 20px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.price li svg { flex: none; width: 20px; height: 20px; color: #9BC7A6; margin-top: 2px; }

details { background: var(--paper); border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--serif); font-size: 24px; line-height: .9; color: var(--terra); }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; color: var(--ink2); font-size: 16px; }
.final { text-align: center; padding: 50px 0 10px; }
.final h2 { margin-bottom: 22px; }

footer.foot { margin-top: 46px; padding: 22px 0 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.foot p + p { margin-top: 8px; }
footer.foot .warn { color: var(--ink2); font-weight: 600; }

/* enrolment */
.flow { padding-bottom: 40px; }
.progress { display: flex; gap: 6px; margin: 10px 0 8px; }
.progress span { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.progress span.on { background: var(--terra); }
.stepno { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.flow h1 { font-size: 36px; margin-bottom: 10px; }
.flow .lead { color: var(--ink2); margin-bottom: 18px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; }
.field input, .field select { width: 100%; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 16px; font-size: 17px; outline: none; transition: border-color .12s, box-shadow .12s; }
.field input:focus { border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-l); }
.sub-h { margin-top: 30px; font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; cursor: pointer; }
.pick.on { border-color: var(--terra); background: var(--terra-l); color: var(--terra-d); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.times .pick { min-height: 64px; font-size: 20px; font-family: var(--serif); font-weight: 400; border-radius: 18px; }
.medrow { background: var(--paper); border-radius: 18px; padding: 4px 16px 16px; margin-top: 12px; box-shadow: var(--shadow); }
.medrow .chips { margin-top: 4px; }
.linkbtn { background: none; border: 0; color: var(--terra-d); font-weight: 700; padding: 12px 0; cursor: pointer; }
.err { color: var(--no); font-weight: 600; font-size: 15px; margin-top: 14px; min-height: 1em; }
.actions { display: grid; gap: 10px; margin-top: 28px; }
.fine { text-align: center; font-size: 14px; color: var(--muted); }

/* family page */
.fam { padding-bottom: 20px; }
.fam .hi { font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.banner { background: var(--night); color: #fff; border-radius: var(--r); padding: 18px 18px 18px; margin-top: 14px; }
.banner .bt { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #F3B48F; font-weight: 700; }
.banner p { font-size: 15px; opacity: .85; margin: 6px 0 14px; }
.banner .btn { min-height: 50px; width: 100%; }
.bar { height: 6px; background: rgba(255, 255, 255, .15); border-radius: 9px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #F3B48F; border-radius: 9px; }
.parent { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.parent .face { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F9D8BE, #E9A27A 70%); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: #7A3A1F; }
.parent h1 { font-size: 32px; }
.parent .next { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.consent { display: inline-flex; gap: 7px; align-items: center; margin-top: 10px; font-size: 13.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.consent svg { width: 15px; height: 15px; }
.consent.given { background: var(--sage-l); color: #3F5F48; }
.consent.pending { background: var(--amber-l); color: #7A5310; }
.consent.refused { background: #F8DDD7; color: #8E2F1E; }
.welcome { background: var(--sage-l); border-radius: var(--r); padding: 18px; margin-top: 16px; }
.welcome h3 { font-size: 21px; margin-bottom: 6px; }
.welcome p { font-size: 15.5px; color: #34503B; }
.sect { margin-top: 26px; }
.sect > h2 { font-size: 24px; margin-bottom: 12px; }
.try { background: linear-gradient(160deg, var(--night2), var(--night)); color: #fff; border-radius: var(--r); padding: 22px; }
.try h3 { margin-bottom: 8px; }
.try p { opacity: .8; font-size: 15.5px; margin-bottom: 16px; }
.hist { display: grid; gap: 10px; }
.hist .card { padding: 16px 18px; }
.hist .text { font-size: 15.5px; }
.mem { display: flex; flex-wrap: wrap; gap: 8px; }
.mem span { font-family: var(--hand); font-size: 21px; color: var(--terra-d); background: var(--paper); border-radius: 12px; padding: 4px 12px; box-shadow: var(--shadow); }
.people { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.people li { display: flex; justify-content: space-between; font-size: 15.5px; }
.people li span { color: var(--muted); font-size: 14px; }
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--cream); border-radius: 12px; padding: 12px; font-size: 13px; }
.linkbox button { border: 0; border-radius: 12px; background: var(--ink); color: #fff; padding: 0 16px; font-weight: 700; cursor: pointer; }
.mail { font-size: 14.5px; }
.mail b { display: block; margin-bottom: 4px; }
.lock { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.lock svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.flash { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--sage-l); color: #34503B; font-weight: 600; font-size: 15px; }
.flash.bad { background: #F8DDD7; color: #8E2F1E; }
.demo { margin-top: 10px; font-size: 13px; color: var(--muted); }
.writing { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); margin-right: 4px; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* the call */
body.night { background: var(--night); color: #fff; }
.callv { height: 100svh; min-height: 100vh; display: flex; flex-direction: column; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.callv .trial { font-size: 14px; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 14px; color: rgba(255, 255, 255, .85); }
.callv .head { text-align: center; margin-top: 28px; }
.callv .avatar { width: 120px; height: 120px; font-size: 52px; margin: 0 auto 18px; }
.callv.live .avatar::before, .callv.live .avatar::after, .callv.over .avatar::before, .callv.over .avatar::after { animation: none; opacity: 0; }
.callv .avatar .lvl { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid rgba(243, 180, 143, .7); transform: scale(var(--l, 1)); transition: transform .08s; }
.callv .who { font-family: var(--serif); font-size: 34px; }
.callv .tag { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(243, 180, 143, .16); color: #F3B48F; font-weight: 700; }
.callv .status { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .7); min-height: 1.4em; }
.callv .clock { font-variant-numeric: tabular-nums; }
.caps { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 18px 0 10px; display: flex; flex-direction: column; gap: 10px; -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); padding-top: 14px; }
.caps > :first-child { margin-top: auto; }
.callv.live .trial, .callv.over .trial:first-child { display: none; }
.callv.live .head, .callv.over .head { margin-top: 6px; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; align-items: center; }
.callv.live .avatar, .callv.over .avatar { width: 64px; height: 64px; font-size: 28px; margin: 0; grid-row: span 3; }
.callv.live .who, .callv.over .who { font-size: 26px; }
.callv.live .tag, .callv.over .tag { justify-self: start; margin-top: 2px; }
.callv.live .status, .callv.over .status { margin-top: 2px; font-size: 14px; }
.callv.live .clock { display: none; }
.cap { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.cap.ai { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; }
.cap.me { align-self: flex-end; background: #F3B48F; color: var(--night); border-bottom-right-radius: 6px; }
.cap.me.part { opacity: .6; }
.cap small { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; font-weight: 700; }
.callkeys { display: flex; justify-content: space-around; align-items: flex-start; padding-top: 10px; }
.callkeys button { background: none; border: 0; color: #fff; display: grid; justify-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.callkeys .key { width: 74px; height: 74px; }
.callkeys .key svg { width: 32px; height: 32px; }
.callkeys .key.ok { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(12deg); } }
.typebar { display: flex; gap: 8px; margin-bottom: 14px; }
.typebar input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 0; padding: 0 18px; background: rgba(255, 255, 255, .12); color: #fff; outline: none; }
.typebar input::placeholder { color: rgba(255, 255, 255, .5); }
.typebar button { height: 50px; padding: 0 18px; border-radius: 999px; border: 0; background: #F3B48F; color: var(--night); font-weight: 700; }
.typeopen { background: none; border: 0; color: rgba(255, 255, 255, .7); text-decoration: underline; font-size: 14px; margin: 0 auto 12px; display: block; cursor: pointer; }
.callv .endcard { margin-top: 22px; color: var(--ink); }
.callv .endcard .card { margin-top: 12px; }
.callv .endcard h3 { color: #fff; font-size: 21px; }
.callv .foot2 { margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .45); text-align: center; }

@media (min-width: 720px) {
  .wrap { max-width: 640px; }
  .hero h1 { font-size: 60px; }
  .ctas { grid-template-columns: auto auto; justify-content: start; }
}

.callv.over .lvl, .callv.over .caps { display: none; }
.callv.over .endcard { flex: 1; overflow-y: auto; }
