/* ------------------------------------------------------------------
   Gryning website. The same colours and type as the app.
   ------------------------------------------------------------------ */

:root {
  --page: #FFFBF4;          /* The app's warm page colour */
  --page-deep: #FCEFD9;     /* Dawn, a little deeper */
  --sun: #F3B441;           /* Sun yellow */
  --sun-deep: #D4952A;
  --ink: #1F1B16;           /* The app's Ink accent */
  --text: #1F1B16;
  --muted: #7D746A;
  --card: #FFFFFF;
  --card-border: rgba(115, 77, 26, 0.09);
  --radius: 28px;

  --rounded: "SF Pro Rounded", ui-rounded, "Nunito", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Nunito", system-ui, sans-serif;
  --why: Optima, "Belleza", Candara, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 110px 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .desk { display: none; } .section { padding: 80px 0; } }

h1, h2, h3, h4 { font-family: var(--rounded); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 300; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 300; line-height: 1.12; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.sun-dot { color: var(--sun); }

/* Small caps label above headings, like "MY WHY" in the app */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--rounded); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.pill:active { transform: scale(.97); }
.pill-dark { background: var(--ink); color: var(--page); }

/* The app's signature row: a title and a big round black arrow. */
.arrow-cta {
  display: inline-flex; align-items: center; gap: 22px;
  text-decoration: none; padding: 6px 0; cursor: pointer;
}
.arrow-cta-text { display: flex; flex-direction: column; gap: 2px; }
.arrow-cta-text strong { font: 600 24px/1.15 var(--rounded); }
.arrow-cta-text small { font-size: 15px; color: var(--muted); }
.arrow-circle {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--page);
  display: grid; place-items: center; font-size: 28px; line-height: 1;
  transition: transform .2s ease;
}
.arrow-cta:hover .arrow-circle { transform: translateX(4px); }
.arrow-cta:active .arrow-circle { transform: scale(.94); }
.arrow-cta-wide {
  display: flex; justify-content: space-between; width: 100%;
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  padding: 18px 0; margin-top: 28px;
}

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--card-border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-logo img { width: 112px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.lang-switch {
  font: 600 13px/1 var(--rounded); letter-spacing: .06em; text-decoration: none; color: var(--muted);
  padding: 8px 10px; border-radius: 999px; border: 1.5px solid var(--card-border); margin-right: -16px;
  transition: color .15s, border-color .15s;
}
.lang-switch:hover { color: var(--text); border-color: var(--sun); }
@media (max-width: 760px) { .nav-links { display: none; } .lang-switch { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--page-deep) 0%, var(--page) 70%);
  padding: 50px 0 90px; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { margin-bottom: 26px; }
.hero-actions { margin-top: 40px; }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 70px; }
.glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243,180,65,.35) 0%, rgba(243,180,65,0) 65%);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero { padding-top: 30px; }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 1206 / 2622;
  border-radius: 52px; padding: 11px; background: #17140F;
  box-shadow: 0 50px 80px -30px rgba(90, 60, 20, .35), 0 0 0 1.5px #3A342C inset;
}
.phone > img, .phone .ring-screen { width: 100%; height: 100%; border-radius: 42px; object-fit: cover; }
.island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 86px; height: 25px; border-radius: 20px; background: #000;
}
.phone-small { width: 270px; }
.phone-small .island { width: 78px; height: 22px; top: 20px; }

/* ---------- The live ringing screen ---------- */
.ring-screen {
  position: relative; overflow: hidden; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #E7E2DA; /* the dim pre-dawn */
  padding: 0 22px; display: flex; flex-direction: column;
}
.ring-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #FFF8EC 0%, #FDEBCB 100%);
  opacity: 0; animation: sky 9s ease-in-out infinite;
}
.ring-screen > *:not(.ring-sky):not(.ring-emergency) { position: relative; }
.ring-status { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 17px 10px 0; }
.ring-bars { display: flex; gap: 2px; align-items: flex-end; }
.ring-bars i { width: 3px; background: var(--ink); border-radius: 1px; }
.ring-bars i:nth-child(1) { height: 4px; } .ring-bars i:nth-child(2) { height: 6px; }
.ring-bars i:nth-child(3) { height: 8px; } .ring-bars i:nth-child(4) { height: 10px; }
.ring-emergency {
  position: absolute; top: 46px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.6); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.ring-clock { font-size: 66px; font-weight: 200; letter-spacing: -0.02em; margin-top: 46px; line-height: 1; }
.ring-title { font-size: 21px; font-weight: 700; margin-top: 14px; }
.ring-title span { color: var(--sun); }
.ring-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ring-horizon { position: relative; height: 150px; margin-top: auto; overflow: hidden; }
.ring-sun {
  position: absolute; left: 50%; bottom: 0; width: 76px; height: 76px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 40px 10px rgba(243,180,65,.35);
  transform: translate(-50%, 100%); animation: rise 9s ease-in-out infinite;
}
.ring-line {
  position: absolute; left: -22px; right: -22px; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(243,180,65,.7), transparent);
}
.ring-snooze { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.ring-scan {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; margin-bottom: 40px; padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.07); border-bottom: 1px solid rgba(0,0,0,.07);
}
.ring-scan b { display: block; font-size: 17px; }
.ring-scan small { display: block; font-size: 11px; color: var(--muted); }
.ring-scan span {
  width: 46px; height: 46px; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; font-size: 20px; flex: none;
}
@keyframes rise {
  0%, 6% { transform: translate(-50%, 100%); }
  70%, 90% { transform: translate(-50%, 20%); }   /* 60% risen, like the app */
  100% { transform: translate(-50%, 100%); }
}
@keyframes sky {
  0%, 6% { opacity: 0; }
  70%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- The block, drawn in 3D ----------
   A stack of thin rounded squares (made in script.js) gives it its thickness. */
.block {
  --w: 200px;
  position: relative; width: var(--w); height: var(--w);
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
}
.block .layer, .block .face {
  position: absolute; inset: 0; border-radius: 50%;  /* Round, like a sun. */
}
.block .layer { background: #C98A2A; }
.block .face {
  background: radial-gradient(circle at 30% 25%, #F9C866 0%, var(--sun) 55%, #EAA935 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.block .face img { width: 68%; transform: translateY(4%); }
.block-float {
  position: absolute; left: -30px; bottom: -6px; z-index: 2;
  perspective: 900px; animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 25px rgba(120, 80, 20, .28));
}
.block-float .block { --w: 150px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 900px) { .block-float { left: calc(50% - 250px); } }
@media (max-width: 560px) { .block-float { left: 0; } }
@media (max-width: 420px) { .phone { width: 260px; } .block-float .block { --w: 118px; } }

/* ---------- How it works ---------- */
.steps {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.steps li {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 30px;
}
.steps h3 { font-size: 22px; margin: 22px 0 10px; }
.steps p { color: var(--muted); font-size: 17px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--sun);
  display: grid; place-items: center; font: 700 19px var(--rounded); color: #000;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why band ---------- */
.why-band { background: linear-gradient(180deg, var(--page) 0%, var(--page-deep) 50%, var(--page) 100%); }
.why-inner { max-width: 820px; text-align: center; }
.why-quote { font-family: var(--why); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; margin: 0 0 28px; }
.why-text { color: var(--muted); font-size: 19px; max-width: 36em; margin-inline: auto; }

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  margin-top: 90px;
}
.feature-shot { display: flex; justify-content: center; position: relative; }
.feature-shot::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243,180,65,.22), rgba(243,180,65,0) 68%);
}
.feature-text { max-width: 440px; }
.feature-text h3 { font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.feature-text p { color: var(--muted); }
.feature.flip .feature-shot { order: 2; }
.quote-sample { font-family: var(--why); color: var(--text) !important; font-size: 22px; margin-top: 22px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-shot { order: 0; }
  .feature-text { max-width: none; }
}

.feature-grid {
  list-style: none; padding: 0; margin: 110px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-grid li {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 26px;
}
.feature-grid h4 { margin: 14px 0 6px; }
.feature-grid p { color: var(--muted); font-size: 16px; }
.fg-icon {
  width: 42px; height: 42px; border-radius: 50%; background: #FDF0D6;
  display: grid; place-items: center; color: var(--sun-deep);
}
.fg-icon svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- The block section ---------- */
.block-band { background: var(--page-deep); }
.block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.block-stage {
  position: relative; perspective: 1100px; display: grid; place-items: center; min-height: 420px;
}
.block-big { --w: 290px; animation: turn 14s ease-in-out infinite; z-index: 1; }
.block-shadow {
  position: absolute; width: 320px; height: 70px; bottom: 50px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(120,80,20,.28), rgba(120,80,20,0) 70%);
}
@keyframes turn {
  0%, 100% { transform: rotateX(58deg) rotateZ(-38deg); }
  50% { transform: rotateX(54deg) rotateZ(-26deg); }
}
.block-text h2 { margin-bottom: 22px; }
.specs { margin: 36px 0 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--card-border); }
.specs dt { font-weight: 600; font-family: var(--rounded); }
.specs dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .block-inner { grid-template-columns: 1fr; }
  .block-stage { min-height: 320px; }
  .block-big { --w: 220px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Order ---------- */
.order-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 36px;
  box-shadow: 0 40px 80px -50px rgba(120, 80, 20, .35);
}
.order-visual {
  background: radial-gradient(circle at 50% 55%, #FFE7B5 0%, var(--page-deep) 60%);
  display: grid; place-items: center; perspective: 1000px; min-height: 420px;
}
/* The shadow sits on a wrapper: a shadow on the block itself would flatten its 3D. */
.order-block { perspective: 1000px; filter: drop-shadow(0 30px 25px rgba(120, 80, 20, .3)); }
.order-visual .block { --w: 230px; }
.order-body { padding: 56px 52px; }
.price { font: 300 40px/1 var(--rounded); margin: 18px 0 26px; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 12px; align-items: baseline; }
.includes li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none;
  transform: translateY(-1px);
}
.trust {
  list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--muted);
}
@media (max-width: 860px) {
  .order-card { grid-template-columns: 1fr; }
  .order-visual { min-height: 300px; }
  .order-body { padding: 40px 26px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq { margin-top: 50px; border-top: 1px solid var(--card-border); }
.faq details { border-bottom: 1px solid var(--card-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 19px/1.35 var(--rounded);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 2px solid var(--sun); transition: background .2s;
}
.faq details[open] summary::after { background: var(--sun); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 70px; border-top: 1px solid var(--card-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 15px; }
.footer-small { font-size: 13px; }
.footer-contact a { color: var(--text); text-decoration-color: var(--sun); text-underline-offset: 3px; }
.footer-contact a:hover { text-decoration-thickness: 2px; }

/* ---------- Waitlist dialog ---------- */
.waitlist {
  border: 0; border-radius: 32px; padding: 44px 38px 38px; width: min(440px, 100% - 32px);
  background: var(--page); color: var(--text); text-align: center;
  box-shadow: 0 40px 100px -30px rgba(60, 40, 10, .45);
}
.waitlist::backdrop { background: rgba(31, 27, 22, .35); backdrop-filter: blur(4px); }
.waitlist[open] { animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.waitlist-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--page-deep); font-size: 20px; cursor: pointer; color: var(--muted);
}
.waitlist-sun {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sun); margin: 0 auto 22px;
  box-shadow: 0 0 40px 8px rgba(243,180,65,.4);
}
.waitlist h3 { font-weight: 400; font-size: 27px; margin-bottom: 12px; }
.waitlist > p { color: var(--muted); font-size: 17px; }
.waitlist-form { display: flex; gap: 8px; margin-top: 26px; }
.waitlist-form input[type=email] {
  flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--card-border); background: var(--card); color: var(--text); outline: none;
}
.waitlist-form input[type=email]:focus { border-color: var(--sun); }
.waitlist-done { margin-top: 26px; font: 600 19px var(--rounded); }
.waitlist-error { margin-top: 14px; color: #B5452F; font-size: 15px; }
@media (max-width: 420px) { .waitlist-form { flex-direction: column; } .waitlist-form .pill { padding: 14px; } }

/* ---------- Less motion, if the visitor prefers it ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring-sun { transform: translate(-50%, 20%); }
  .ring-sky { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* No focus ring when the dialog opens with a tap; keep it for keyboard users. */
.waitlist-close:focus:not(:focus-visible) { outline: none; }
