/* SK Solutions: section styles (static layout; motion.js adds movement on top) */

/* ---------- Hero ---------- */
.hero { padding-top: calc(72px + clamp(48px, 8vw, 110px)); background: var(--white); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .word > span { display: inline-block; }
.hero-stage { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 560px; }
.phone { width: 300px; aspect-ratio: 9 / 18.5; border-radius: 46px; background: var(--navy); padding: 12px;
  box-shadow: var(--shadow-float); position: relative; transform-style: preserve-3d; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #000; border-radius: 20px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: var(--wash); padding: 64px 14px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font: 600 14px/1.2 var(--sans); color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--sans); flex: none; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.bubble--bot { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bubble--ok { align-self: stretch; background: #E7F8EF; color: #0B6B3E; font-weight: 600; border-radius: 12px; }
.float { position: absolute; background: var(--white); border-radius: var(--r-pill); padding: 10px 16px; font: 600 14px/1 var(--sans); color: var(--ink); box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 8px; }
.float--a { left: 0; top: 18%; } .float--b { right: 0; bottom: 20%; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 520px; }
  .float--a { left: 4%; } .float--b { right: 4%; }
}
@media (max-width: 420px) { .phone { width: 250px; } .hero-stage { min-height: 470px; } }

/* ---------- 22:14 scene ---------- */
.problem { padding: 0; }
.scene { --night: 0; position: relative; padding-block: var(--section); background: var(--wash); overflow: hidden; }
.scene::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: var(--night); pointer-events: none; }
.scene-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.scene.is-night .h2, .scene.is-night .lede { color: #fff; }
.scene .h2, .scene .lede { transition: color .4s; }
.scene-device { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px; }
.clock { font: 400 clamp(72px, 10vw, 128px)/1 var(--serif); color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.notifs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.notif { display: flex; gap: 14px; align-items: baseline; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; color: var(--ink); }
.notif-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 600; flex: none; }
.notif--hot { border-color: rgba(36,81,216,.35); background: var(--blue-soft); }
.scene-answer { margin-top: 16px; background: #E7F8EF; color: #0B6B3E; border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; }
@media (max-width: 900px) { .scene-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- What it does ---------- */
.what { overflow: hidden; }
.what-viewport { margin-top: 56px; }
/* Static layout (no JS / reduced motion): a grid where every card is visible. */
.what-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
/* With motion on (desktop), the cards become one long row that slides sideways while you scroll. */
@media (min-width: 900px) {
  .motion-on .what-track { display: flex; max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; }
  .motion-on .what-card { width: min(380px, 78vw); flex: none; }
}
.what-card { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.what-card h3 { font: 400 32px/1.05 var(--serif); letter-spacing: -0.02em; }
.what-card--accent { background: var(--navy); border-color: var(--navy); }
.what-card--accent h3 { color: #fff; } .what-card--accent p { color: #C9D3E8; }
@media (max-width: 900px) {
  .what-track { width: auto; flex-direction: column; padding-inline: var(--gutter); }
  .what-card { width: 100%; min-height: 0; }
}

/* ---------- Demo ---------- */
.demo { background: var(--wash); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.field-label { margin-top: 30px; font: 600 14px/1 var(--sans); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: var(--r-pill); padding: 10px 16px; font: 500 15px/1 var(--sans); cursor: pointer; transition: transform .3s var(--spring), border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chat { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-float); display: flex; flex-direction: column; height: 600px; max-height: 82vh; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; color: var(--ink); font-size: 16px; line-height: 1.2; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.m { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.m--bot { align-self: flex-start; background: var(--wash); color: var(--ink); border-bottom-left-radius: 5px; }
.m--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.booked { align-self: stretch; background: #E7F8EF; border-radius: var(--r-sm); padding: 12px 14px; color: #0B6B3E; font-size: 14px; white-space: pre-line; }
.booked b { display: block; font-size: 15px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; background: var(--wash); border-radius: 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; }
.suggest-chip { border: 1px solid var(--line); background: var(--white); color: var(--blue); border-radius: var(--r-pill); padding: 8px 12px; font: 500 13px/1.2 var(--sans); cursor: pointer; text-align: left; }
.suggest-chip:hover { border-color: var(--blue); }
.chat-form { display: flex; gap: 8px; padding: 12px 20px 20px; border-top: 1px solid var(--line); }
.chat-form input { border-radius: var(--r-pill); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } .chat { height: 560px; } }

/* ---------- How it works ---------- */
.how-title { max-width: 18ch; }
.how-steps { position: relative; margin-top: 64px; }
.how-line { position: absolute; left: 0; right: 0; top: 2px; height: 40px; width: 100%; overflow: visible; }
.how-line path { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.how-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.how-steps li { display: grid; gap: 10px; align-content: start; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font: 700 17px/1 var(--sans); }
.how-steps p { font-size: 16px; }
@media (max-width: 900px) {
  .how-steps ol { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-left: 6px; }
  .how-line { display: none; }
}

/* ---------- Guide ---------- */
.guide { background: var(--navy); }
.guide .h2, .guide h3 { color: #fff; }
.guide .lede, .guide .checks, .guide .form label { color: #C9D3E8; }
.guide .consent { color: #C9D3E8 !important; } .guide .consent a { color: #fff; }
.guide-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.guide-visual { perspective: 1200px; display: grid; place-items: center; position: relative; }
.guide-cover { width: min(320px, 80vw); aspect-ratio: 3 / 4; background: var(--white); border-radius: 6px 18px 18px 6px; padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-float); transform-style: preserve-3d; position: relative; }
.guide-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--blue); border-radius: 6px 0 0 6px; }
.guide-cover-tag { font: 600 12px/1 var(--sans); color: var(--blue); background: var(--blue-soft); align-self: flex-start; padding: 6px 10px; border-radius: var(--r-pill); }
.guide-cover-title { font: 400 27px/1.1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.guide-cover-brand { margin-top: auto; font: 700 14px/1 var(--sans); color: var(--navy); }
.envelope { position: absolute; width: 260px; height: 170px; bottom: -40px; background: var(--blue); border-radius: 12px; opacity: 0; transform: translateY(40px) scale(.9); }
.envelope::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.5%, var(--blue-dark) 50%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49.5%, var(--blue-dark) 50%) right / 50% 100% no-repeat; border-radius: 12px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; font-weight: 700; }
.guide .form-error { color: #FFB4AB; }
.guide .form-success { color: #7CE0AE; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---------- About ---------- */
.about { background: var(--wash); }
.about-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; max-width: 960px; }
.about-mark { width: 180px; height: 180px; border-radius: 40px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 400 76px/1 var(--serif); letter-spacing: -0.04em; }
.about-grid p + p { margin-top: 14px; max-width: 58ch; }
/* Two co-founder cards under the About text */
.founders { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.founder { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 18px; }
.founder-av { width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 400 22px/1 var(--serif); flex: none; }
.founder strong { display: block; font-weight: 600; color: var(--ink); }
.founder span:not(.founder-av) { display: block; font-size: 14px; opacity: .72; }
@media (max-width: 640px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-mark { width: 110px; height: 110px; font-size: 48px; border-radius: 28px; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 600 18px/1.4 var(--sans); color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font: 400 30px/1 var(--serif); color: var(--blue); transition: transform .35s var(--spring); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-or { margin-top: 30px; color: var(--muted); font-size: 15px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.email { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--serif); color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.form--card { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); margin-top: 0; }
.form--card .btn { margin-top: 10px; justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Intro loader (only with motion on) ---------- */
.has-loader .loader { display: grid; position: fixed; inset: 0; z-index: 200; place-items: center; pointer-events: none; }
.has-loader body { overflow: hidden; }
.loader-curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--white); }
.loader-curtain--top { top: 0; } .loader-curtain--bottom { bottom: 0; }
.loader-logo { position: relative; z-index: 1; }
.loader-logo circle, .loader-logo path { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Motion helpers ---------- */
.motion-on .what { perspective: 1400px; }
.notif { transition: border-color .3s, background-color .3s; }
.scene.is-answered .notif { border-color: rgba(18,183,106,.4); background: #F1FBF5; }
.scene.is-answered .notif-time::after { content: " ✓"; color: var(--green-text); }

/* ---------- Privacy page ---------- */
.legal { max-width: 780px; padding-block: calc(72px + 60px) 100px; }
.legal h2 { font: 600 20px/1.3 var(--sans); color: var(--ink); margin-top: 36px; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.back-link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; margin-right: 8px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero: Higgsfield frames ---------- */
.hero-canvas { width: min(430px, 82vw); height: auto; aspect-ratio: 520 / 680;
  /* soft studio-grey edges fade into the white page */
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 47%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 56% at 50% 47%, #000 58%, transparent 100%); }
.hero-stage.has-frames .phone { display: none; }
