/* Phones at the Table — ad page. Same art as the app: dark paper, the candle, gold and teal. */
:root {
  --night: #28271f; --ink: #efe6d2; --cream: #f6dfb6; --gold: #dcb663; --pearl: #efe9df; --mist: #b9b3ad;
  --teal: #84e3d2; --orchid: #e58ce0; --leaf: #6ff09a; --wax: #a8262b;
  --display: "Federo", "Optima", sans-serif; --deco: "Poiret One", "Federo", sans-serif; --body: "Cormorant Garamond", Garamond, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-weight: 500; font-size: 20px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--night) url("/img/background_dark.jpg") center / cover no-repeat; }
.candle { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .4; mix-blend-mode: screen; pointer-events: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.muted { color: var(--mist); margin: 0 auto; max-width: 34em; text-wrap: balance; }
.small { font-family: var(--deco); font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.15; color: var(--cream); letter-spacing: .02em; }
h2 em, h1 em { font-family: var(--body); font-style: italic; color: var(--gold); }
section.wrap { margin-top: clamp(64px, 10vw, 120px); margin-bottom: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding-top: 32px; padding-bottom: 36px; }
.plaque { position: relative; width: min(500px, 92%); aspect-ratio: 1100 / 354; }
.plaque img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.plaque .bg { width: 100%; }
.plaque .tx { width: 87.9%; left: 49.9%; top: 63.7%; filter: drop-shadow(0 0 10px rgba(246, 223, 182, .2)); }
.hero h1 { font-family: var(--display); font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.15; color: var(--cream); max-width: 19em; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.hero h1 em { display: inline-block; margin-top: .25em; font-size: 1.02em; }
.sub { margin: 0; max-width: 31em; color: var(--pearl); font-size: 1.15rem; text-wrap: balance; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.scroll { margin-top: 6px; color: var(--gold); text-decoration: none; font-family: var(--deco); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll:hover { color: var(--cream); }

/* ---------- sign-up form ---------- */
.signup { width: min(520px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 4px; }
.signup input[type=email] { font: inherit; font-size: 1.05rem; color: var(--ink); background: rgba(10, 9, 7, .7); border: 1px solid rgba(220, 182, 99, .6);
  border-radius: 999px; padding: 14px 20px; min-width: 0; }
.signup input[type=email]::placeholder { color: #8d877f; }
.signup input[type=email]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(132, 227, 210, .25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 1rem; color: var(--cream); }
.form-msg.err { color: #ffb3a6; }
.btn { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--night); cursor: pointer;
  background: var(--leaf); border: 0; border-radius: 999px; padding: 14px 24px; white-space: nowrap;
  box-shadow: 0 0 18px rgba(111, 240, 154, .45), 0 6px 16px rgba(0, 0, 0, .4); transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(111, 240, 154, .75), 0 8px 18px rgba(0, 0, 0, .45); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(220, 182, 99, .7); box-shadow: none; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-family: var(--deco); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.proof li::before { content: "✦ "; color: var(--teal); }
.fine { margin: 0; color: var(--mist); font-size: .95rem; }
.fine a { color: var(--mist); }
.try { margin: 6px 0 0; font-size: 1.1rem; }

/* ---------- sealed envelope ---------- */
.envelope { position: relative; width: min(420px, 100%); aspect-ratio: 7 / 5; margin: 10px 0 0; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(160deg, #f3e3c0, #dcc193); border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(220, 182, 99, .18);
  perspective: 900px; }
.envelope .flap { position: absolute; inset: 0 0 auto 0; height: 58%; z-index: 3; transform-origin: top center; transition: transform .7s cubic-bezier(.3, .7, .2, 1);
  background: linear-gradient(180deg, #e9d3a6, #d1b27b); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope .wax { position: absolute; z-index: 4; left: 50%; top: 58%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #f5c3a0; background: radial-gradient(circle at 35% 30%, #d4473f, var(--wax) 60%, #6e1418);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 -3px 6px rgba(0, 0, 0, .35); transition: transform .4s, opacity .4s; animation: pulse 2.6s ease-in-out infinite; }
.envelope .card { position: absolute; z-index: 2; inset: 12% 8% 10%; background: #fbf4e4; color: #2a241b; border-radius: 6px; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .4s .25s, transform .6s .2s; transform: translateY(14px); }
.card-kicker { font-family: var(--deco); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wax); }
.card-text { font-family: var(--body); font-style: italic; font-size: clamp(1.15rem, 3.4vw, 1.45rem); line-height: 1.3; }
.envelope .flap { transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .5s .15s; }
.envelope.open .flap { transform: rotateX(90deg); opacity: 0; }
.envelope.open .wax { transform: scale(.4); opacity: 0; animation: none; }
.envelope.open .card { opacity: 1; transform: translateY(-6%); }
.linkish { font: inherit; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.aside { max-width: 32em; margin: 8px auto 0; color: var(--pearl); font-size: 1.1rem; text-wrap: balance; }
@keyframes pulse { 50% { transform: scale(1.07); box-shadow: 0 4px 18px rgba(212, 71, 63, .6), inset 0 -3px 6px rgba(0, 0, 0, .35); } }

/* ---------- problem ---------- */
.problem p { max-width: 30em; margin: 0; color: var(--mist); text-wrap: balance; }
.problem .turn { color: var(--pearl); font-size: 1.15rem; }
.problem strong { color: var(--cream); font-weight: 600; }

/* ---------- courses ---------- */
.menu .ttl { width: min(420px, 80%); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.courses { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; width: 100%; text-align: left; }
.courses li { display: flex; flex-direction: column; gap: 6px; }
.courses .num { font-family: var(--display); color: var(--gold); font-size: 1.1rem; margin-top: 10px; }
.courses h3 { font-family: var(--display); color: var(--cream); font-size: 1.25rem; }
.courses p { margin: 0; color: var(--mist); font-size: 1rem; line-height: 1.4; }
.phone { margin: 0; border-radius: 30px; padding: 6px; background: #0d0c0a; box-shadow: 0 0 0 1px rgba(220, 182, 99, .45), 0 18px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(229, 140, 224, .12); }
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }

/* ---------- easy ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; width: 100%; }
.steps li { counter-increment: s; position: relative; padding: 52px 22px 24px; border: 1px solid rgba(220, 182, 99, .35); border-radius: 16px; background: rgba(13, 12, 10, .55); color: var(--mist); }
.steps li::before { content: counter(s); position: absolute; top: 14px; left: 22px; font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.steps b { display: block; color: var(--cream); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.easy strong { color: var(--pearl); }

/* ---------- faq ---------- */
.faq details { width: min(700px, 100%); text-align: left; border-bottom: 1px solid rgba(220, 182, 99, .25); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; position: relative; font-family: var(--display); font-size: 1.2rem; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--mist); }

/* ---------- maker ---------- */
.maker p { margin: 0; max-width: 30em; font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.35; color: var(--cream); text-wrap: balance; }
.maker .sig { font-style: normal; font-family: var(--deco); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- final ---------- */
.final { padding-bottom: 80px; }

/* ---------- thank-you ---------- */
.thanks { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(10, 9, 7, .8); backdrop-filter: blur(6px); }
.thanks[hidden] { display: none; }
.thanks-card { width: min(480px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 26px 22px;
  background: #1b1a15; border: 1px solid rgba(220, 182, 99, .6); border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(111, 240, 154, .12); }
.thanks-card p { margin: 0; color: var(--mist); }
.thanks-card strong { color: var(--pearl); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.thanks .close { margin-top: 6px; color: var(--mist); }

/* ---------- sticky mobile CTA ---------- */
.sticky { display: none; }

footer { text-align: center; padding: 30px 20px calc(90px + env(safe-area-inset-bottom, 0px)); color: var(--mist); font-size: .95rem; border-top: 1px solid rgba(220, 182, 99, .2); }
footer p { margin: 4px 0; }
footer a { color: var(--mist); }

@media (max-width: 900px) {
  .courses { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px 14px; -webkit-overflow-scrolling: touch; }
  .courses li { scroll-snap-align: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .signup { grid-template-columns: 1fr; }
  .btn { padding: 15px 22px; }
  .sticky { display: block; position: fixed; z-index: 40; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center;
    font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--night); background: var(--leaf);
    padding: 15px; border-radius: 999px; box-shadow: 0 0 18px rgba(111, 240, 154, .45), 0 8px 20px rgba(0, 0, 0, .5);
    transform: translateY(160%); transition: transform .35s ease; }
  .sticky.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .candle { display: none; } html { scroll-behavior: auto; }
  .envelope .wax { animation: none; } .envelope .flap, .envelope .card { transition: none; }
}
