/* Planio website. Two colours, like the app: cream #FEFBF6 and charcoal #161617. */

:root {
  --gap: clamp(64px, 8vw, 104px); /* space between sections */
  --cream: #fefbf6;
  --ink: #161617;
  --ink-2: rgba(22, 22, 23, 0.62);
  --ink-3: rgba(22, 22, 23, 0.38);
  --line: rgba(22, 22, 23, 0.1);
  --cream-2: rgba(254, 251, 246, 0.66);
  --cream-3: rgba(254, 251, 246, 0.4);
  --card: #ffffff;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
a, button, [tabindex] { touch-action: manipulation; }
/* Clear focus rings for keyboard users only. */
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.dark :focus-visible, .on-dark :focus-visible, .fcard :focus-visible { outline-color: var(--cream); }
/* Even, natural line breaks at every screen width. */
h1, h2, h3, .h2, blockquote, .statement p { text-wrap: balance; }
p { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Side gutters also clear the notch when an iPhone is turned sideways. */
.wrap { width: min(1080px, 100% - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; }

/* MARK: Navigation */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: rgba(254, 251, 246, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.on-dark { background: rgba(22, 22, 23, 0.72); color: var(--cream); }
.on-dark .brand img, footer.dark .brand img { box-shadow: 0 0 0 1px rgba(254, 251, 246, 0.25); }
.nav.on-dark.scrolled { border-bottom-color: rgba(254, 251, 246, 0.08); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; opacity: 0.8; }
.nav-links a:hover { opacity: 0.6; }
.nav .pill { font-size: 13px; padding: 7px 14px; }

/* Phone menu button: two lines that turn into a cross. */
.menu-btn { display: none; width: 40px; height: 40px; margin-left: auto; margin-right: -6px; border: 0; background: none; padding: 0; cursor: pointer; place-items: center; position: relative; color: inherit; }
.menu-btn i { position: absolute; left: 11px; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-btn i:first-child { transform: translateY(-3.5px); }
.menu-btn i:last-child { transform: translateY(3.5px); }
.nav.open .menu-btn i:first-child { transform: rotate(45deg); }
.nav.open .menu-btn i:last-child { transform: rotate(-45deg); }

/* MARK: Buttons */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.pill:hover { transform: scale(1.03); }
.pill:active { transform: scale(0.98); }
.on-dark .pill, .dark .pill { background: var(--cream); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* The App Store badge, drawn in the site's colours. */
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--cream);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(22, 22, 23, 0.5);
}
.store-badge:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -14px rgba(22, 22, 23, 0.55); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; letter-spacing: 0.01em; }
.store-badge b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.dark .store-badge { background: var(--cream); color: var(--ink); box-shadow: none; }

/* MARK: Hero */

.hero { padding: 150px 0 0; text-align: center; position: relative; overflow-x: clip; overflow-y: visible; }
.hero-glow {
  position: absolute; inset: -10% 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(237, 229, 216, 0.9), transparent 70%),
    radial-gradient(35% 45% at 72% 40%, rgba(220, 213, 202, 0.7), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, 3%, 0) scale(1.08); } }

.mark { width: 108px; height: 108px; margin: 0 auto 30px; border-radius: 26px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(22, 22, 23, 0.55); }
.mark svg { width: 100%; height: 100%; }
.mark .leaf { transform-box: fill-box; opacity: 0; }
.mark .leaf-l { transform-origin: 100% 100%; }
.mark .leaf-r { transform-origin: 0% 100%; }
.mark .stem { stroke-dasharray: 260; stroke-dashoffset: 260; }
.loaded .mark { animation: rise 1.1s var(--ease) both; }
.loaded .mark .stem { animation: draw 1s 0.25s var(--ease) forwards; }
.loaded .mark .leaf-l { animation: grow 0.9s 0.75s var(--ease) forwards; }
.loaded .mark .leaf-r { animation: grow 0.9s 0.9s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { opacity: 0; transform: scale(0.2) rotate(-8deg); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-size: clamp(48px, 9vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
}
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); }
.loaded .hero h1 .word { animation: word 1s var(--ease) forwards; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero .lede {
  max-width: 560px; margin: 22px auto 0; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; color: var(--ink-2);
}
.hero .actions { margin-top: 34px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fade-up { opacity: 0; transform: translateY(18px); }
.loaded .fade-up { animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-stage { margin-top: 64px; perspective: 1400px; }
.hero-stage .phone { margin: 0 auto; transform-origin: 50% 0; will-change: transform; }

/* MARK: Phone mockup (drawn in HTML so it stays crisp and can animate) */

.phone {
  --w: 300px;
  width: var(--w); aspect-ratio: 300 / 620; border-radius: 52px; padding: 11px;
  background: #0d0d0e;
  box-shadow: 0 0 0 1.5px #3a3a3e inset, 0 28px 56px -28px rgba(22, 22, 23, 0.26), 0 10px 24px -16px rgba(22, 22, 23, 0.2);
  position: relative;
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--cream); color: var(--ink); font-size: 12px;
}
.island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0d0d0e; z-index: 5; }
.view { position: absolute; inset: 0; padding: 50px 18px 18px; opacity: 0; transform: scale(0.97); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.view.active { opacity: 1; transform: none; }

.app-greet { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.app-sub { color: var(--ink-2); margin-top: 2px; }
.app-card { margin-top: 14px; padding: 13px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(22, 22, 23, 0.25); }
.app-h { font-weight: 650; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.app-h span { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 14px; line-height: 1; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.check { width: 19px; height: 19px; border-radius: 50%; border: 1.6px solid var(--ink-3); flex: none; position: relative; transition: background 0.4s var(--ease), border-color 0.4s; }
.check::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.4s 0.1s var(--ease); }
.task.done .check { background: var(--ink); border-color: var(--ink); }
.task.done .check::after { transform: rotate(45deg) scale(1); }
.task.done .t { color: var(--ink-3); text-decoration: line-through; transition: color 0.4s; }
.progress { display: flex; align-items: center; gap: 14px; }
.ring { width: 54px; height: 54px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 138; stroke-dashoffset: 138; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1.4s var(--ease); }
.view.active .ring .bar { stroke-dashoffset: var(--to, 50); }
.big { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--ink-2); }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 52px; border-radius: 26px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 8px 24px -12px rgba(22, 22, 23, 0.3); display: flex; justify-content: space-around; align-items: center; }
.tabbar i { width: 20px; height: 20px; border-radius: 6px; background: var(--ink-3); }
.tabbar i:first-child { background: var(--ink); }

/* Planny chat view */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 18px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 6px; }
.bubble.planny { align-self: flex-start; background: #fff; box-shadow: 0 6px 18px -12px rgba(22, 22, 23, 0.3); border-bottom-left-radius: 6px; }
.view.active .bubble { opacity: 1; transform: none; }
.view.active .bubble:nth-child(2) { transition-delay: 0.6s; }
.view.active .bubble:nth-child(3) { transition-delay: 1.3s; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 11px; }
.planny-head { display: flex; align-items: center; gap: 10px; }
.planny-head img { width: 34px; height: 34px; border-radius: 10px; }

/* Deep Dive view */
.view.deep { color: var(--cream); background: linear-gradient(140deg, #101b2e, #1f3d6b 45%, #09111e 75%, #3466a8); background-size: 250% 250%; animation: shift 9s ease-in-out infinite alternate; }
@keyframes shift { to { background-position: 100% 100%; } }
.deep .tag { display: inline-block; padding: 4px 9px; border-radius: 999px; background: rgba(254, 251, 246, 0.14); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }
.deep h4 { margin: 14px 0 4px; font-size: 21px; letter-spacing: -0.03em; }
.deep .q { margin-top: 16px; padding: 14px; border-radius: 18px; background: rgba(254, 251, 246, 0.1); border: 1px solid rgba(254, 251, 246, 0.12); }
.deep .q p { color: var(--cream-2); font-size: 11px; margin-top: 6px; }
.deep .bar2 { height: 4px; border-radius: 4px; background: rgba(254, 251, 246, 0.15); margin-top: 18px; overflow: hidden; }
.deep .bar2 span { display: block; height: 100%; width: 0; background: var(--cream); border-radius: 4px; transition: width 1.4s 0.3s var(--ease); }
.deep.active .bar2 span { width: 40%; }
.cards { position: relative; height: 150px; margin-top: 16px; }
.cards div { position: absolute; inset: 0; border-radius: 18px; padding: 14px; background: rgba(254, 251, 246, 0.94); color: var(--ink); transition: transform 1s var(--ease); }
.cards div:nth-child(1) { transform: translate(14px, 14px) scale(0.92); opacity: 0.5; }
.cards div:nth-child(2) { transform: translate(7px, 7px) scale(0.96); opacity: 0.8; }

/* MARK: Sections */

section { position: relative; }
.dark { background: var(--ink); color: var(--cream); }
.dark .muted, .dark .eyebrow { color: var(--cream-2); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-bottom: 12px; }
.h2 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; }
.sub { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 620px; margin-top: 18px; }
.dark .sub { color: var(--cream-2); }
/* Each section leaves one even gap below it; dark blocks pad inside on both sides. */
.pad { padding: 0 0 var(--gap); }
.dark.pad { padding: var(--gap) 0; }
.dark + .pad { padding-top: var(--gap); }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* Watch: the ad (YouTube, loads only on play) and the How to video (hosted here) */
.videos { display: grid; gap: 40px; margin-top: 56px; text-align: left; }
.video { margin: 0; }
.video .frame { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; padding: 0; border-radius: 28px; overflow: hidden;
  background: var(--ink); box-shadow: 0 40px 80px -42px rgba(22, 22, 23, 0.5), 0 0 0 1px var(--line); }
.video .yt { cursor: pointer; }
.video .yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.video .yt:hover img { transform: scale(1.02); }
.video .play { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 11px 20px 11px 16px; border-radius: 999px;
  background: rgba(22, 22, 23, 0.86); color: var(--cream); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.35s var(--ease); transform-origin: 0 100%; }
.video .play svg { width: 18px; height: 18px; fill: currentColor; }
.video .yt:hover .play { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding-inline: 6px; }
.video figcaption b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.video figcaption span { font-size: 16px; color: var(--ink-2); }
@media (min-width: 900px) { .videos { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .video .play { left: 14px; bottom: 14px; padding: 8px 15px 8px 12px; font-size: 13px; } .video .play svg { width: 15px; height: 15px; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }

/* Statement that lights up word by word as you scroll */
.statement { padding: var(--gap) 0; }
.statement p { font-size: clamp(36px, 6.2vw, 72px); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; max-width: 960px; }
.statement .w { color: rgba(22, 22, 23, 0.14); transition: color 0.35s; }
.statement .w.lit { color: var(--ink); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.tile {
  padding: 30px; border-radius: 28px; background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 20px 50px -36px rgba(22, 22, 23, 0.35);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 34px 60px -36px rgba(22, 22, 23, 0.45); }
.tile .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--cream); margin-bottom: 22px; }
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 650; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.tile.wide { grid-column: span 2; display: flex; gap: 30px; align-items: center; }

/* Themes marquee */
.marquee { margin-top: 64px; overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 6px 0; }
.theme-card { user-select: none; -webkit-user-select: none; }
.theme-card {
  width: 200px; height: 250px; border-radius: 28px; padding: 20px; flex: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c0); box-shadow: 0 0 0 1px var(--line) inset;
}
/* An animated mesh gradient: three soft blobs of the theme's colours drifting into
   each other. Only transforms animate, so it stays smooth on phones. */
.theme-card .blob {
  position: absolute; z-index: -1; width: 115%; height: 115%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, var(--c) 30%, transparent 100%);
  will-change: transform;
  animation: mesh var(--t, 14s) ease-in-out infinite alternate;
}
.theme-card .b1 { --c: var(--c1); left: -45%; top: -40%; --t: 12s; }
.theme-card .b2 { --c: var(--c3); left: 30%; top: 5%; --t: 16s; animation-direction: alternate-reverse; }
.theme-card .b3 { --c: var(--c2); left: -30%; top: 45%; --t: 10s; }
.theme-card .b4 { --c: var(--c3); left: 25%; top: 60%; --t: 14s; width: 80%; height: 80%; opacity: 0.7; animation-direction: alternate-reverse; }
@keyframes mesh {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(22%, -14%) scale(1.12); }
  66% { transform: translate(-16%, 18%) scale(0.92); }
  100% { transform: translate(12%, 24%) scale(1.06); }
}
.offscreen .blob, .offscreen .view.deep { animation-play-state: paused; }
.theme-card b { font-size: 20px; letter-spacing: -0.02em; }
.theme-card .blurb { font-size: 13px; opacity: 0.75; margin-top: 2px; line-height: 1.3; }
.theme-card.light-text { color: var(--cream); }

/* Features: a row of cards that glides along by itself (see site.js) and snaps to each card. */
.features-row { padding: 0 0 var(--gap); }
.hs { margin-top: 36px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1080px) / 2)); }
.hs.dragging { scroll-snap-type: none; }
.hs::-webkit-scrollbar { display: none; }
.hs.dragging { cursor: grabbing; }
.fcard { scroll-snap-align: start; }
.hs-track { display: flex; gap: 22px; width: max-content; padding: 10px max(20px, calc((100vw - 1080px) / 2)) 30px; }
.fcard {
  --h: clamp(400px, 62vh, 560px);
  width: min(960px, 86vw); height: var(--h); flex: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  padding: 0 0 0 56px; border-radius: 36px; overflow: hidden;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 40px 80px -50px rgba(22, 22, 23, 0.7);
  user-select: none; -webkit-user-select: none;
  opacity: 0.55; transform: scale(0.96);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.fcard.current { opacity: 1; transform: none; }
.fc-num { display: block; font-size: 14px; font-weight: 600; color: var(--cream-3); letter-spacing: 0.08em; margin-bottom: 18px; }
.fcard .icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(254, 251, 246, 0.1); margin-bottom: 22px; }
.fcard .icon svg { width: 26px; height: 26px; }
.fcard h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.fcard p { margin-top: 14px; font-size: 18px; color: var(--cream-2); max-width: 400px; }
.fc-phone { height: 100%; display: flex; align-items: flex-end; padding: 40px 56px 0 0; }
.fc-phone .phone { --w: calc((var(--h) - 40px) * 300 / 560); width: var(--w); aspect-ratio: auto; height: calc(var(--h) - 40px); border-radius: 46px 46px 0 0; padding-bottom: 0; box-shadow: 0 0 0 1.5px #3a3a3e inset; }
.fc-phone .screen { border-radius: 36px 36px 0 0; }
.badge-premium { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0.05em; background: linear-gradient(120deg, #3466a8, #7e4d94, #e6a1b1); color: #fff; width: max-content; }
/* Last card: a quote and the download button, with the sprout growing beside it. */
.fcard-quote blockquote { margin: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.fcard-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 17px; color: var(--cream-2); }
.fcard-quote p { margin-bottom: 0; }
.fcard .store-badge { background: var(--cream); color: var(--ink); box-shadow: none; }
.fc-sprout { height: 100%; aspect-ratio: 1; display: grid; place-items: center; padding-right: 30px; }
.fc-sprout svg { height: 74%; width: auto; overflow: visible; }
.fc-sprout .leaf { transform-box: fill-box; opacity: 0; }
.fc-sprout .leaf-l { transform-origin: 100% 100%; }
.fc-sprout .leaf-r { transform-origin: 0% 100%; }
.fc-sprout .stem { stroke-dasharray: 260; stroke-dashoffset: 260; }
.fcard.current .fc-sprout .stem { animation: draw 1.1s 0.2s var(--ease) forwards; }
.fcard.current .fc-sprout .leaf-l { animation: grow 1s 0.8s var(--ease) forwards; }
.fcard.current .fc-sprout .leaf-r { animation: grow 1s 0.95s var(--ease) forwards; }
/* Once it has sprouted, a soft glow fades in and stays. */
.fcard.current .fc-sprout svg { animation: sproutGlow 1.4s 1.9s ease-out forwards; }
@keyframes sproutGlow {
  from { filter: drop-shadow(0 0 0 rgba(254, 251, 246, 0)); }
  to { filter: drop-shadow(0 0 22px rgba(254, 251, 246, 0.55)) drop-shadow(0 0 6px rgba(254, 251, 246, 0.35)); }
}
.hs-bar { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.hs-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hs-progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; }

/* Premium */
.price-card {
  margin: 60px auto 0; max-width: 460px; padding: 40px 36px; border-radius: 32px;
  background: linear-gradient(160deg, rgba(254, 251, 246, 0.08), rgba(254, 251, 246, 0.02));
  border: 1px solid rgba(254, 251, 246, 0.12); text-align: left;
}
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; }
.price small { font-size: 18px; font-weight: 500; color: var(--cream-2); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ticks b { font-weight: 600; }
.ticks span { color: var(--cream-2); display: block; font-size: 15px; }
.fine { font-size: 13px; color: var(--cream-3); margin-top: 16px; }

/* Closing call to action */
.cta .mark { width: 88px; height: 88px; border-radius: 22px; }
.cta .mark .leaf, .cta .mark .stem { opacity: 1; stroke-dashoffset: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 calc(50px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a:hover { color: var(--ink); }

/* MARK: Contact page */

.contact { padding: 150px 0 120px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 700; }
.contact .info { display: grid; gap: 18px; margin-top: 40px; }
.contact .info div { display: flex; gap: 14px; align-items: flex-start; }
.contact .info .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--cream); display: grid; place-items: center; flex: none; }
.contact .info .icon svg { width: 20px; height: 20px; }
.contact .info b { display: block; font-weight: 600; }
.contact .info span { color: var(--ink-2); font-size: 15px; }
form.card { padding: 34px; border-radius: 30px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 70px -40px rgba(22, 22, 23, 0.4); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); font-size: 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161617' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field :focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 22, 23, 0.08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
form .pill { justify-content: center; padding: 16px; font-size: 17px; margin-top: 4px; }
form .pill[disabled] { opacity: 0.5; cursor: default; transform: none; }
.status { font-size: 15px; min-height: 22px; text-align: center; }
.sent { text-align: center; padding: 40px 10px; display: none; }
.sent.show { display: block; animation: fadeUp 0.8s var(--ease); }
.sent .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.sent .tick svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.7s 0.3s var(--ease) forwards; }
.sent h2 { font-size: 28px; letter-spacing: -0.03em; }

/* MARK: Small screens */

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav .pill { margin-left: 4px; }
  /* The links drop down from the bar when the menu is open. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; opacity: 0; font-size: 19px; font-weight: 600;
    padding: 6px max(20px, env(safe-area-inset-left)) 18px;
    background: rgba(254, 251, 246, 0.96);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  }
  .nav.on-dark .nav-links { background: rgba(22, 22, 23, 0.96); border-bottom-color: rgba(254, 251, 246, 0.08); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.on-dark .nav-links a { border-bottom-color: rgba(254, 251, 246, 0.08); }
  /* Lighter work for phones: three blobs per theme card instead of four. */
  .theme-card .b4 { display: none; }
  .fcard { --h: min(560px, calc(100svh - 200px)); width: 84vw; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 18px; padding: 28px 24px 0; align-items: start; }
  .fcard .icon, .fc-num { margin-bottom: 12px; }
  .fcard h3 { font-size: 24px; }
  .fcard p { font-size: 15px; margin-top: 8px; }
  .fc-phone { padding: 0; justify-content: center; min-height: 0; overflow: hidden; }
  .fc-phone .phone { --w: 210px; height: auto; aspect-ratio: 300 / 560; align-self: flex-start; }
  /* Quote card on phones: words start at the top like the other cards; the sprout
     grows, bigger, in the space underneath. */
  /* Bottom space matches the gap under the text, so the sprout centres between the two. */
  .fcard-quote { padding-bottom: 18px; }
  .fcard-quote .fc-sprout { position: relative; height: 100%; aspect-ratio: auto; padding: 0; min-height: 0; }
  .fcard-quote .fc-sprout svg { position: absolute; top: 50%; left: 50%; translate: -50% -50%; height: min(230px, 92%); width: auto; }
  .fcard-quote blockquote { font-size: 28px; }
  .grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .row2 { grid-template-columns: 1fr; }
  .hero-stage .phone { --w: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .hero h1 .word, .mark .leaf { opacity: 1; transform: none; filter: none; }
  .mark .stem, .fc-sprout .stem { stroke-dashoffset: 0; }
  .fc-sprout .leaf { opacity: 1; }

}

/* MARK: Touch screens: no "stuck" hover lifts after a tap, and solid glass instead of live background blurs,
   which are costly to redraw while scrolling on phones. */
@media (hover: none) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(254, 251, 246, 0.96); }
  .nav.on-dark { background: rgba(22, 22, 23, 0.96); }
  .video .play { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 22, 23, 0.92); }
  .pill:hover, .store-badge:hover, .tile:hover { transform: none; }
  .store-badge:hover { box-shadow: 0 10px 30px -12px rgba(22, 22, 23, 0.5); }
  .tile:hover { box-shadow: 0 1px 0 var(--line), 0 20px 50px -36px rgba(22, 22, 23, 0.35); }
  .nav-links a:hover { opacity: 1; }
}
.pill:active, .store-badge:active { transform: scale(0.97); }

@media (hover: none) and (max-width: 860px) {
  .nav-links { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(254, 251, 246); }
  .nav.on-dark .nav-links { background: rgb(22, 22, 23); }
}

/* MARK: Big screens: a roomier layout. */
@media (min-width: 1400px) {
  .wrap { width: min(1240px, 100% - 96px); }
  body { font-size: 18px; }
  .hero h1 { font-size: 112px; }
  .hero .lede { max-width: 640px; }
  .hero-stage .phone { --w: 340px; }
  .grid { gap: 24px; }
  .tile { padding: 36px; }
  .fcard { width: min(1120px, 80vw); }
  .theme-card { width: 230px; height: 290px; }
  .statement p { max-width: 1100px; }
}

/* MARK: A soft shimmer that sweeps across the "Planio Premium" label. */
.shimmer {
  background: linear-gradient(100deg, rgba(254, 251, 246, 0.6) 0%, rgba(254, 251, 246, 0.6) 40%, #fff 50%, rgba(254, 251, 246, 0.6) 60%, rgba(254, 251, 246, 0.6) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  animation: shimmer 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  70%, 100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; color: var(--cream-2); background: none; } }
