/* Ringbox theme (Flat v2: paper, ink, flat colour blobs, no shadows) + page sections. Shared system: landing.css */
:root {
  --bg: #f4f2ed;
  --bg-2: #ebe8e1;
  --surface: #ffffff;
  --text: #151515;
  --muted: #5e5c57;
  --line: #e4e0d7;
  --accent: #ffc53d;
  --on-accent: #151515;
  --accent-text: #151515;
  --h-from: #000000;
  --h-to: #666666;
  --sun: #ffc53d; --sky: #9fd0f2; --lime: #c6e06b; --coral: #ff9a7a; --lilac: #c3b5f7; --record: #ff5a3c;
  --glass: #151515;
  --glass-line: #151515;
  --glass-hover: rgba(255, 255, 255, 0.12);
  --menu-bg: rgba(244, 242, 237, 0.86);
  --soon-bg: #151515;
  --soon-fg: #ffffff;
  --phone: #151515;
  --focus: #151515;
  color-scheme: light;
}
::selection { background: var(--sun); color: var(--text); }

/* Ink island, like the app's floating tab bar */
.island { color: #fff; }
.island .links a { color: rgba(255, 255, 255, 0.72); }
@media (hover: hover) and (pointer: fine) { .island .links a:hover, .island .links a[aria-current="true"] { color: #fff; } }
.island .cta[aria-disabled="true"] { background: var(--sun); color: var(--text); }
.burger span { background: #fff; }

.phone { box-shadow: none; }
.iphone > .layer.shadow { box-shadow: none; }

/* Hero */
.hero { padding: 160px 0 var(--s-900); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); align-items: center; }
@media (max-width: 900px) { .hero { padding-top: 128px; } .hero-grid { grid-template-columns: 1fr; gap: var(--s-600); } }
.ring-card {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 48px; background: var(--sun);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-600);
  transform: rotate(-3deg); transition: transform 1200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .ring-card:hover { transform: rotate(0deg) scale(1.01); } }
.ring-card .wave { display: flex; align-items: center; gap: 6px; height: 45%; }
.ring-card .wave i { flex: 1; border-radius: 9999px; background: var(--text); height: var(--h); animation: bar 1.6s var(--ease) infinite alternate; animation-delay: var(--d); }
@keyframes bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.ring-card .time { display: flex; align-items: flex-end; gap: var(--s-200); font-size: 128px; line-height: 0.8; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ring-card .time svg { width: 48px; height: 48px; margin-bottom: 8px; animation: shake 2.4s var(--ease) infinite; transform-origin: 50% 10%; }
@keyframes shake { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 78% { transform: rotate(-8deg); } 84% { transform: rotate(4deg); } }
.ring-card .label { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--text); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.ring-card .label .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--record); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (max-width: 480px) { .ring-card { padding: var(--s-400); border-radius: 40px; } }

/* Drum: alarm cards on a wheel, like the time picker */
.drum-scene { height: 380vh; }
.drum-scene .scene-pin { display: grid; align-items: center; }
.drum-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-700); align-items: center; }
@media (max-width: 900px) { .drum-grid { grid-template-columns: 1fr; gap: var(--s-400); } .drum-scene .lead { display: none; } }
.drum-view { position: relative; height: min(70vh, 560px); perspective: 900px; display: grid; place-items: center; }
@media (max-width: 900px) { .drum-view { height: 52vh; } }
.drum { position: relative; width: min(100%, 420px); height: 112px; transform-style: preserve-3d; }
.alarm {
  position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-200);
  padding: 0 var(--s-300); border-radius: 24px; background: var(--c); color: var(--text);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.alarm.front { box-shadow: inset 0 0 0 3px var(--text); }
.alarm .t { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.alarm .n { font-size: 16px; line-height: 24px; font-weight: 700; }
.alarm .m { display: flex; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; color: rgba(21, 21, 21, 0.72); }
.alarm .m .bars { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.alarm .m .bars i { width: 3px; border-radius: 2px; background: currentColor; }
.alarm .play { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; }
.alarm .play svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .drum { height: 96px; } .alarm { padding: 0 var(--s-200); gap: var(--s-100); } .alarm .t { font-size: 36px; } .alarm .n { font-size: 14px; line-height: 20px; } }
.drum-caption { margin-top: var(--s-400); display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--surface); font-size: 14px; line-height: 20px; font-weight: 600; }
.drum-caption svg { width: 16px; height: 16px; }

/* Prism: three screens on a rotating triangle */
.prism-scene { height: 340vh; background: var(--bg-2); }
.prism-scene .scene-pin { display: grid; align-items: center; }
.prism-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: center; }
@media (max-width: 900px) { .prism-grid { grid-template-columns: 1fr; gap: var(--s-300); } }
.prism-view { height: min(78vh, 680px); perspective: 1600px; display: grid; place-items: center; }
.spin { --w: calc(min(78vh, 680px) * 0.44); }
@media (max-width: 900px) { .prism-view { height: calc(100svh - 330px - var(--ui-bottom)); } .spin { --w: calc((100svh - 330px - var(--ui-bottom)) * 0.44); } }
.psteps { position: relative; min-height: 240px; }
@media (max-width: 900px) { .psteps { min-height: 150px; order: 2; } .psteps .lead { margin-top: var(--s-100); font-size: 16px; line-height: 24px; } .psteps h2.title { font-size: 30px; line-height: 36px; } }
.pstep { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.pstep.on { opacity: 1; transform: none; filter: none; }
.pstep .num { display: inline-flex; width: 32px; height: 32px; margin-bottom: var(--s-200); align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; }

/* Tagline highlighter */
.tagline-band { padding-block: 160px; }
.tagline { line-height: 1.15; }
.tagline .w.hl { position: relative; z-index: 0; }
.tagline .w.hl::before { content: ""; position: absolute; z-index: -1; top: 0.1em; bottom: -0.02em; left: -0.12em; right: -0.18em; border-radius: 0.12em; background: var(--sun); opacity: 0; transform: scaleX(0.6); transform-origin: 0 50%; transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
.tagline .w.hl.on::before { opacity: 1; transform: none; }
@media (max-width: 640px) { .tagline-band { padding-block: var(--s-900); } }

/* Record & time */
.blobs { margin-top: var(--s-600); }
.blob { border-radius: 32px; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-200); min-height: 280px; background: var(--c); transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .blob:hover { transform: translateY(-4px) rotate(-1deg); } }
.blob .big { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; margin-top: auto; }
.blob .k { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; }
.blob p { color: rgba(21, 21, 21, 0.72); }
.mins { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: auto; }
.mins span { padding: var(--s-75) var(--s-100); border-radius: 9999px; background: rgba(255, 255, 255, 0.6); font-weight: 700; font-size: 14px; line-height: 20px; }
.mins span.on { background: var(--text); color: #fff; }

/* Rings when it matters */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-800); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-600); } }
.lock { border-radius: 48px; background: var(--text); color: #fff; padding: var(--s-400); display: grid; gap: var(--s-300); max-width: 440px; justify-self: center; width: 100%; }
.lock .top { display: flex; align-items: center; gap: var(--s-100); font-size: 14px; line-height: 20px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.lock .top .app { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: var(--sun); color: var(--text); }
.lock .top .app svg { width: 18px; height: 18px; }
.lock .clock { font-size: 96px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.lock .what { font-size: 20px; line-height: 28px; font-weight: 700; }
.lock .wave { display: flex; gap: 4px; align-items: center; height: 48px; }
.lock .wave i { flex: 1; border-radius: 9999px; background: var(--sun); height: var(--h); animation: bar 1.4s var(--ease) infinite alternate; animation-delay: var(--d); }
.lock .btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-100); }
.lock .btns span { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 9999px; font-weight: 700; }
.lock .btns .snooze { background: rgba(255, 255, 255, 0.14); }
.lock .btns .stop { background: var(--sun); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-400); }
.chips span { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--c); font-weight: 600; font-size: 14px; line-height: 20px; }
.chips svg { width: 16px; height: 16px; }

/* Pricing */
.plans { margin: var(--s-600) auto 0; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 32px; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-200); text-align: left; background: var(--surface); }
.plan.plus { background: var(--sun); }
.plan .price { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; color: rgba(21, 21, 21, 0.72); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.plan li { display: flex; gap: var(--s-75); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.plan .note { font-size: 14px; line-height: 20px; color: rgba(21, 21, 21, 0.72); }

/* Final */
.final { background: var(--text); color: #fff; border-radius: 48px; padding: var(--s-900) var(--s-400); text-align: center; }
.final .hero-title { margin-inline: auto; --h-from: #ffffff; --h-to: #9b9b9b; }
.final .lead { margin-inline: auto; color: rgba(255, 255, 255, 0.72); }
.final .cta-row { justify-content: center; }
.final .btn[aria-disabled="true"] { background: var(--sun); color: var(--text); }
@media (max-width: 480px) { .final { padding: var(--s-700) var(--s-300); border-radius: 32px; } .final .hero-title { font-size: 30px; line-height: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .ring-card .wave i, .lock .wave i, .ring-card .time svg, .ring-card .label .dot { animation: none; }
  .ring-card { transform: none; }
}

/* Two things in one: alarms and the talking quick timer */
.ways { margin-top: var(--s-600); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-300); padding: var(--s-500) var(--s-500) 0; border-radius: 40px; background: var(--c); color: var(--text); transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .way:hover { transform: translateY(-4px); } }
@media (max-width: 480px) { .way { padding: var(--s-300) var(--s-300) 0; border-radius: 32px; } }
.way-head { display: flex; align-items: center; gap: var(--s-200); }
.way-head h3 { font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
.way-ic { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; }
.way-ic svg { width: 28px; height: 28px; }
.way-time { display: inline-block; margin-top: var(--s-50); padding: 2px var(--s-100); border-radius: 9999px; background: rgba(21, 21, 21, 0.1); font-size: 14px; line-height: 20px; font-weight: 700; }
.way-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.way-steps li { display: flex; gap: var(--s-100); align-items: center; font-weight: 600; }
.way-steps span { display: inline-flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; }
.way-steps span svg { width: 16px; height: 16px; }
.way-best { font-size: 14px; line-height: 20px; color: rgba(21, 21, 21, 0.72); }
.way-best b { color: var(--text); margin-right: var(--s-50); }

/* The app icon is black: give it an edge on the ink island */
.island .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }



.island:not(.solid) { --island-bg: #151515; --glass-line: rgba(255, 255, 255, 0.1); }

/* Phone mockups in cards stand up as the card comes into view: no roll, no skew, never cropped at the sides */
.way-phone { margin-top: auto; height: 300px; display: flex; justify-content: center; perspective: 2600px; perspective-origin: 50% 85%; clip-path: inset(-120px -120px 0 -120px); }
.way-phone .iphone { --w: 240px; margin-top: var(--s-300); transform-origin: 50% 100%; transform: translateY(48px) rotateX(28deg); opacity: 0.5;
  transition: transform 1400ms var(--ease) 150ms, opacity 900ms var(--ease) 150ms; }
.way.in .way-phone .iphone { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .way.in:hover .way-phone .iphone { transform: translateY(-10px); transition-delay: 0s; } }
@media (max-width: 720px) { .way-phone { height: 270px; } .way-phone .iphone { --w: min(56vw, 230px); } }
@media (prefers-reduced-motion: reduce) { .way-phone .iphone { transform: none; opacity: 1; } }

/* ===== Phones: the desktop page in one column, sized to read ===== */
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; gap: var(--s-200); margin-top: var(--s-400); }
  .plan { padding: var(--s-300); border-radius: 28px; }
  .plan .price { font-size: 36px; line-height: 40px; }
  .lock { padding: var(--s-300); border-radius: 32px; gap: var(--s-200); }
  .lock .clock { font-size: 72px; }
  .way-steps li { font-size: 14px; line-height: 20px; }
}

/* card phones always stand upright: no lying-down start state */
.way-phone { perspective: none !important; }
.way-phone .iphone, .tilt .iphone { transform: none !important; opacity: 1 !important; }

/* ===== Phones, portrait and landscape: their own layout (system in landing.css) ===== */
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) {
  .hero { padding: var(--s-700) 0; }
  .ring-card { width: min(100%, calc(var(--m-room) * 0.62)); justify-self: center; }
  .ideas-m .lead { margin-top: var(--s-100); }
  .ideas-m .m-marquee { margin-top: var(--s-300); }
  .ideas-m .m-marquee > div { --drift: 48s; padding-block: var(--s-75); }
  .ideas-m .alarm { position: relative; inset: auto; width: min(80vw, 340px); height: 88px; }
  .how-m { background: var(--bg-2); }
  .how-m .num { display: inline-flex; width: 32px; height: 32px; margin-bottom: var(--s-100); align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; }
  .how-m h2.title { font-size: 30px; line-height: 36px; }
  .how-m .m-dots { --dot: var(--text); }
  .lock { padding: var(--s-300); border-radius: 32px; gap: var(--s-200); }
  .lock .clock { font-size: 72px; }
  .plans { gap: var(--s-200); margin-top: var(--s-400); }
  .plan .price { font-size: 36px; line-height: 40px; }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  .hero { padding-top: var(--s-600); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-400); }
  .hero .hero-title { font-size: 30px; line-height: 36px; }
  .hero .lead { font-size: 14px; line-height: 20px; margin-top: var(--s-100); }
  .hero .cta-row { margin-top: var(--s-200); }
  .hero .proof { display: none; }
  .ring-card { width: calc(var(--m-room) - var(--s-600)); padding: var(--s-300); border-radius: 32px; }
  .ways, .plans, .split { grid-template-columns: 1fr 1fr; }
  .way-head h3 { font-size: 24px; line-height: 32px; }
  .way-phone { height: 200px; }
  .way-phone .iphone { --w: 160px; }
  .ideas-m .lead { max-width: 640px; }
  .lock { max-width: 360px; padding: var(--s-200); gap: var(--s-100); }
  .lock .clock { font-size: 48px; }
  .lock .wave { height: 32px; }
  .lock .btns span { min-height: 44px; }
}

/* The 7:00 card scales with its own width, so it reads the same in any column, window or orientation */
.ring-card { container-type: inline-size; }
.ring-card .time { font-size: clamp(48px, 26cqw, 128px); gap: 4cqw; }
.ring-card .time svg { width: clamp(24px, 9.5cqw, 48px); height: clamp(24px, 9.5cqw, 48px); margin-bottom: 1.6cqw; }
.ring-card .label { white-space: nowrap; font-size: clamp(12px, 3.2cqw, 14px); padding: clamp(4px, 1.6cqw, 8px) clamp(8px, 3.2cqw, 16px); }
.ring-card .wave { gap: clamp(2px, 1.2cqw, 6px); }

/* Phones: one iPhone above (or beside) the steps; it spins between them */
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) {
  .how-m-grid { display: grid; gap: var(--s-300); justify-items: center; text-align: center; }
  .how-m .m-vis { perspective: 1400px; }
  .how-m .m-vis .iphone { --w: calc(min(46svh, 420px) * 0.48); }
  .how-m .m-car { width: 100%; }
  .how-m .m-txt > * { max-width: 520px; margin-inline: auto; }
  .how-m .lead { margin-top: var(--s-100); }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  .how-m-grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; text-align: left; gap: var(--s-400); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) 0; }
  .how-m .m-vis .iphone { --w: calc((var(--m-room) - var(--s-600)) * 0.48); }
  .how-m .m-dots { justify-content: flex-start; padding-left: var(--gutter); }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) { .how-m .m-txt > * { margin-inline: 0; } }

/* The film is the first section on desktop: full bleed under the bar, no frame; phones open with it full screen */
.film-sec { padding: calc(56px + env(safe-area-inset-top, 0px)) 0 0; background: #f4f2ed; }
.film-card { position: relative; margin: 0; height: calc(100svh - 56px); min-height: 420px; overflow: hidden; background: #f4f2ed; }
.film-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-play { position: absolute; right: var(--s-300); bottom: var(--s-300); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 9999px; background: #151515; color: #fff; cursor: pointer; transition: transform 160ms var(--ease); }
.film-play:active { transform: scale(0.96); }
.film-play svg { width: 20px; height: 20px; }
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) { .film-intro { --film-bg: #f4f2ed; --film-fg: #151515; } }
