/* Polish pass: small refinements across the home page. */

/* ---------- Section openings ---------- */
.section-intro {
  margin-top: var(--s2);
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}
.section-night .section-intro { color: var(--night-muted); }

/* ---------- Phone section ---------- */
.story-phone { position: relative; isolation: isolate; }
/* A soft disc behind the phone so it sits on something. */
.story-phone::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 46%;
  width: min(470px, 110%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #E6EEEC 0 58%, rgba(230, 238, 236, 0) 70%);
}
.story-phone::after {
  /* A warm glint low on the disc, like the lantern light. */
  content: ""; position: absolute; z-index: -1;
  left: 64%; top: 70%; width: 160px; height: 160px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 164, 47, .22), rgba(250, 164, 47, 0) 70%);
}

/* A more convincing phone: camera notch and side buttons. */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #0D161C;
}
.phone::before { left: -3px; top: 22%; height: 46px; box-shadow: 0 60px 0 #0D161C; }
.phone::after { right: -3px; top: 28%; height: 70px; }
.phone-screen::before {
  content: ""; position: absolute; z-index: 6; left: 50%; top: 7px;
  width: 64px; height: 18px; margin-left: -32px; border-radius: 10px;
  background: #0D161C;
}
.ps-bar { padding-top: 32px; position: relative; z-index: 3; background: var(--cream); }
/* The scroll demo moves the photo and the text together, like a real page. */
.phone .ps-photos {
  animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both;
  animation-play-state: paused; animation-delay: 0s;
}
.phone[data-state="0"] .ps-photos { animation-name: s0-scroll; }

/* Fill the lower part of the screen like a real site. */
.ps-specials { display: grid; gap: 6px; }
.ps-label { font-family: var(--font-display); font-weight: 760; font-size: 11px; color: var(--text-muted); }
.ps-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(24, 37, 45, .06);
}
.ps-item span { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.ps-item .i1 { background: radial-gradient(circle at 50% 50%, #C99A6B 0 34%, #FFF8EE 35% 50%, #2F6F63 51%); }
.ps-item .i2 { background: radial-gradient(circle at 50% 60%, #5B5F9A 0 18%, #E3B074 19% 52%, #F3E5CF 53%); }
.ps-item b { flex: 1; font-family: var(--font-display); font-size: 11px; }
.ps-item em { font-style: normal; font-weight: 700; font-size: 11px; color: var(--text-muted); }
.ps-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; justify-content: space-around;
  padding: 9px 8px 13px;
  background: var(--cream);
  box-shadow: 0 -8px 14px -10px rgba(24, 37, 45, .25);
  border-top: 1px solid #EDE3D3;
  font-family: var(--font-display); font-weight: 760; font-size: 10px; color: #8C979C;
}
.ps-tabs .on { color: var(--ink); }
.ps-tabs .on::before {
  content: ""; display: block; width: 16px; height: 3px; margin: 0 auto 3px; border-radius: 2px; background: var(--accent);
}
/* The call pop-up sits above the menu bar. */
.ps-toast { bottom: 52px; z-index: 5; opacity: 0; transform: translateY(16px); }

/* Caption under the phone: a hint first, then a plain label. */
.story-caption { position: relative; height: 1.4em; width: 340px; max-width: 100%; text-align: center; white-space: nowrap; font-size: .875rem; color: var(--text-muted); }
.story-caption span { position: absolute; inset: 0; transition: opacity .4s ease; }
.story-example { opacity: 0; }
.story-hint::before {
  content: ""; display: inline-block; width: 10px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 1.5px solid currentColor; border-radius: 6px;
  background: linear-gradient(currentColor, currentColor) 50% 3px / 1.5px 3px no-repeat;
}
.story.has-started .story-hint { opacity: 0; }
.story.has-started .story-example { opacity: 1; }
@media (max-width: 899px) { .story-hint { opacity: 0; } .story-example { opacity: 1; } }

/* ---------- Two ways to start ---------- */
.services { margin-top: var(--s4); gap: var(--s3); }
@media (min-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .service + .service { border-left: 0; padding-left: var(--s4); }
  .service:first-child { padding-right: var(--s4); }
}
.service {
  display: flex; flex-direction: column;
  padding: var(--s4); border-radius: var(--radius);
  background: #FFFFFF; border: 1px solid var(--line);
}
.service p { flex: 1; }
.service-link {
  align-self: flex-start; margin-top: var(--s3);
  font-family: var(--font-display); font-weight: 760; color: var(--pine);
  text-decoration: none; border-bottom: 2px solid rgba(47, 111, 99, .3);
  transition: border-color .2s ease;
}
.service-link:hover { border-color: var(--pine); }

/* ---------- Before / after ---------- */
.compare { max-width: 1000px; margin: var(--s6) auto 0; }
.cmp-top { display: flex; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.cmp-title { font-family: var(--font-display); font-weight: 760; font-size: 1.25rem; letter-spacing: -.01em; }
.cmp-labels { gap: 8px; margin: 0; flex: none; }
@media (max-width: 599px) { .cmp-title { font-size: 1.0625rem; } .cmp-tag { padding: 4px 10px; } }
.cmp-tag { padding: 5px 12px; font-size: .8125rem; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.cmp-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.cmp-window {
  border: 1px solid rgba(24, 37, 45, .14); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 37, 45, .06), 0 24px 48px -20px rgba(24, 37, 45, .28), 0 60px 90px -60px rgba(24, 37, 45, .35);
}
.cmp-chrome { padding: 11px 16px; background: #F1F4F3; border-bottom: 1px solid rgba(24, 37, 45, .1); }
.cmp-chrome i:nth-child(1) { background: #E9897A; }
.cmp-chrome i:nth-child(2) { background: #F0C463; }
.cmp-chrome i:nth-child(3) { background: #8CC7A1; }
.cmp-chrome span { margin: 0 auto; transform: translateX(-24px); padding: 4px 22px; box-shadow: inset 0 0 0 1px rgba(24, 37, 45, .08); }
.cmp-chrome span::before {
  content: ""; display: inline-block; width: 7px; height: 6px; margin-right: 7px; vertical-align: 0;
  border-radius: 1px; background: #8C979C; box-shadow: 0 -3px 0 -1px #F1F4F3, 0 -4px 0 0 #8C979C;
}
.cmp-handle { width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(24, 37, 45, .25), 0 0 18px rgba(24, 37, 45, .35); }
.cmp-handle span { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid #FFFFFF; box-shadow: 0 8px 22px -6px rgba(24, 37, 45, .55); }
.compare figcaption { font-size: .9375rem; text-align: center; }

/* Before: keep the worst of it on the left so it shows at the halfway point. */
.b-head { justify-content: flex-start; padding-left: 3cqw; }
.b-nav, .b-foot { justify-content: flex-start; padding-left: 3cqw; }
.b-body { grid-template-columns: 1fr 1fr; gap: 6cqw; }
.b-copy { padding-right: 1cqw; }

/* After: photo on the left, words on the right, so the halfway point shows the headline. */
.a-scene::after { background: linear-gradient(270deg, rgba(20, 30, 36, .94) 0%, rgba(20, 30, 36, .8) 40%, rgba(20, 30, 36, 0) 72%); }
.a-cup { right: auto; left: 13cqw; }
.a-steam { right: auto; left: 18cqw; }
.a-croissant { right: auto; left: 4cqw; transform: rotate(12deg); }
.a-copy { margin-left: auto; max-width: none; width: 46%; padding: 0 4cqw 0 1cqw; }
.a-title { font-size: 4.8cqw; }
.a-open { right: auto; left: 3cqw; }
.a-head b { margin-right: auto; }
.a-nav:first-of-type { margin-left: 2.4cqw; }
.a-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2cqw; padding: 1.8cqw 3.5cqw 1.8cqw 4.5cqw; align-items: center; }
.a-info { display: grid; gap: .5cqw; font-size: 1.25cqw; color: var(--text-muted); }
.a-info b { font-family: var(--font-display); font-size: 1.6cqw; color: var(--ink); }
.a-tile {
  display: flex; align-items: center; gap: 1.2cqw; padding: 1cqw; border-radius: 1.2cqw; background: #FFFFFF;
  font-family: var(--font-display); font-weight: 760; font-size: 1.4cqw; box-shadow: 0 .6cqw 1.6cqw rgba(24, 37, 45, .08);
}
.a-tile span { width: 5cqw; height: 5cqw; border-radius: .9cqw; flex: none; }

/* ---------- How it works ---------- */
.steps-wrap { margin-top: var(--s5); }

/* ---------- Questions: two columns ---------- */
.faq-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: var(--s6); align-items: start; }
}
.faq-grid .faq { margin-top: 0; }
.faq-ask {
  margin-top: var(--s4); padding: var(--s3);
  border-radius: var(--radius); background: var(--mist);
}
.faq-ask b { font-family: var(--font-display); font-size: 1.0625rem; }
.faq-ask p { margin-top: 6px; color: var(--text-muted); }
.faq-ask a { display: inline-block; margin-top: var(--s2); font-weight: 700; color: var(--ink); }

/* ---------- Small consistency fixes ---------- */
.price h3 { font-size: 1rem; letter-spacing: .01em; }
.price {
  position: relative; overflow: hidden;
  border-width: 1px; border-color: rgba(255, 248, 238, .14);
  background: linear-gradient(180deg, rgba(255, 248, 238, .05), rgba(255, 248, 238, .015));
}
.price::before {
  content: ""; position: absolute; left: var(--s4); right: var(--s4); top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(250, 164, 47, 0), var(--flame), rgba(250, 164, 47, 0));
  opacity: .7;
}

/* ---------- Contact: the form sits on a soft panel ---------- */
#contact .form {
  padding: var(--s4); border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 248, 238, .04);
  border: 1px solid rgba(255, 248, 238, .1);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6);
}
@media (max-width: 599px) { #contact .form { padding: var(--s3); } }.founding-note { margin-top: var(--s4); }

@media (prefers-reduced-motion: reduce) {
  .story-caption span, .service-link { transition: none; }
}
