/* Kryssa – built on the Skanna / joelroos.studio stylesheet, recoloured to Kryssa's look:
   Distill's teal accent, soft cream background, gradient cards and the coral dot from the icon. */

:root {
  --bg: #f7f5ee;
  --ink: #16302b;
  --heading: #12403a;
  --muted: #5d6c67;
  --faint: #8b9792;
  --line: rgba(18, 64, 58, 0.09);
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --nav-glass: rgba(247, 245, 238, 0.8);
  --btn-bg: #12403a;
  --btn-fg: #ffffff;
  --teal: #119d8f;
  --mint: #35bba9;
  --blue: #2663eb;
  --coral: #e07a40;
  --amber: #e3a21a;
  --violet: #8b7bff;
  --pink: #e0607e;
  --link: #0e8478;
  --blob1: #cdeedf;
  --blob2: #fbe2cf;
  --blob3: #d8eee8;
  --blob4: #d6e3ff;
  --blob-opacity: 0.85;
  --card-a: linear-gradient(180deg, #e2f4ef, #f4fbf8);
  --card-b: linear-gradient(180deg, #e7efff, #f5f8ff);
  --card-c: linear-gradient(180deg, #fff0e6, #fffaf5);
  --panel: linear-gradient(135deg, #e4f5ef 0%, #f3f7ee 50%, #fff1e7 100%);
  --hero-grad: linear-gradient(135deg, #119d8f, #2663eb);
  --phone: #ffffff;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(18, 64, 58, 0.05), 0 12px 40px rgba(18, 64, 58, 0.08);
  --shadow-lift: 0 40px 90px rgba(18, 64, 58, 0.22), 0 0 0 1px rgba(18, 64, 58, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1412;
    --ink: #e6efec;
    --heading: #eef6f3;
    --muted: #a3b3ad;
    --faint: #73847e;
    --line: rgba(230, 239, 236, 0.1);
    --surface: #152120;
    --surface-soft: rgba(24, 36, 34, 0.75);
    --nav-glass: rgba(12, 20, 18, 0.78);
    --btn-bg: #e6efec;
    --btn-fg: #0c1412;
    --link: #4fd1bf;
    --blob1: #0f3d36;
    --blob2: #3b2416;
    --blob3: #102f2b;
    --blob4: #13265a;
    --blob-opacity: 0.7;
    --card-a: linear-gradient(180deg, #13302b, #121e1c);
    --card-b: linear-gradient(180deg, #152443, #121a24);
    --card-c: linear-gradient(180deg, #33231a, #1b1714);
    --panel: linear-gradient(135deg, #12302b 0%, #131d1b 50%, #2c1f17 100%);
    --phone: #1d2826;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Soft sky: blurred blobs drifting behind everything. */
.sky { position: absolute; inset: 0 0 auto; height: 1300px; overflow: hidden; pointer-events: none; z-index: 0; }
.sky::after { content: ""; position: absolute; inset: auto 0 0; height: 420px; background: linear-gradient(transparent, var(--bg)); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); animation: drift 26s ease-in-out infinite alternate; }
.blob.b1 { width: 620px; height: 520px; background: var(--blob1); top: -160px; right: -120px; }
.blob.b2 { width: 560px; height: 560px; background: var(--blob2); top: 260px; left: -220px; animation-duration: 32s; animation-delay: -8s; }
.blob.b3 { width: 520px; height: 460px; background: var(--blob3); top: 120px; left: 30%; animation-duration: 38s; animation-delay: -16s; }
.blob.b4 { width: 420px; height: 420px; background: var(--blob4); top: 640px; right: 4%; animation-duration: 29s; animation-delay: -4s; opacity: 0.6; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px 0; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: var(--nav-glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.links { display: flex; gap: 24px; font-size: 14.5px; }
.links a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; transition: color 0.2s; }
.links a:hover, .links a[aria-current] { color: var(--ink); border-color: var(--ink); }
.nav .btn { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg); font: 600 14.5px/1 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(18, 64, 58, 0.2); }
.btn.ghost { background: var(--surface-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224, 122, 64, 0.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(224, 122, 64, 0); } }

h1, h2, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--heading); }
h1 { font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; margin: 22px 0 18px; }
h2 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.08; margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 540px; margin: 0 auto; }
.eyebrow { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.coral { color: var(--coral); }

main, footer { position: relative; z-index: 1; }

/* Hero */
.hero { text-align: center; padding-top: 64px; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.stage { position: relative; width: min(320px, 74vw); margin: 64px auto 0; }
.phone { position: relative; border-radius: 48px; padding: 10px; background: var(--phone); box-shadow: var(--shadow-lift); }
.phone img { border-radius: 39px; width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; background: var(--bg); }
.stage .phone { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.orb {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  box-shadow: 0 14px 34px rgba(18, 64, 58, 0.16); animation: bob 6s ease-in-out infinite;
}
.orb span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.orb svg { width: 19px; height: 19px; }
.orb.o1 { left: -86px; top: 22%; }
.orb.o2 { right: -92px; top: 15%; animation-delay: -2s; }
.orb.o3 { left: -64px; top: 58%; animation-delay: -4s; width: 50px; height: 50px; } .orb.o3 span { width: 32px; height: 32px; border-radius: 10px; }
.orb.o4 { right: -70px; top: 52%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* Gradient tiles, like the habit tiles in the app */
.g-teal { background: linear-gradient(135deg, #35bba9, #119d8f); }
.g-blue { background: linear-gradient(135deg, #5b8cff, #2663eb); }
.g-coral { background: linear-gradient(135deg, #f0a06d, #e07a40); }
.g-amber { background: linear-gradient(135deg, #f2c04d, #e3a21a); }
.g-violet { background: linear-gradient(135deg, #b0a4ff, #8b7bff); }
.g-pink { background: linear-gradient(135deg, #f08aa2, #e0607e); }
.g-hero { background: var(--hero-grad); }

/* Sections */
section.block { padding-top: 120px; }
.head { text-align: center; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius); padding: 22px 22px 26px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.card.t1 { background: var(--card-a); }
.card.t2 { background: var(--card-b); }
.card.t3 { background: var(--card-c); }
.card .demo { min-height: 200px; margin-bottom: 22px; display: grid; place-items: center; position: relative; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; text-align: center; color: var(--heading); }
.card p { color: var(--muted); font-size: 14.5px; text-align: center; margin: 0 auto; max-width: 280px; }

.widget { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); width: 100%; max-width: 260px; }
.chip-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; }
.chip-ic svg { width: 16px; height: 16px; }

/* Card demos: notifications, actions and an alarm */
.notif { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; text-align: left; }
.notif + .notif { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.notif b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.notif b time { color: var(--faint); font-weight: 500; font-size: 11.5px; }
.notif small { display: block; color: var(--muted); font-size: 11.5px; }
.notif .body { flex: 1; min-width: 0; }
.notif.done { opacity: 0.55; }
.notif.done small { color: var(--teal); }

.actions-menu { width: 100%; max-width: 260px; display: grid; gap: 8px; }
.actions-menu .widget { max-width: none; }
.menu { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.menu div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 500; }
.menu div + div { border-top: 1px solid var(--line); }
.menu svg { width: 15px; height: 15px; color: var(--muted); }
.menu .primary { color: var(--teal); font-weight: 600; }
.menu .primary svg { color: var(--teal); }

.alarm { width: 100%; max-width: 250px; border-radius: 22px; padding: 16px; color: #fff; background: var(--hero-grad); box-shadow: 0 18px 40px rgba(38, 99, 235, 0.25); text-align: left; }
.alarm .top { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: 0.9; }
.alarm .top svg { width: 14px; height: 14px; animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.alarm .time { font: 400 44px/1 var(--serif); margin: 10px 0 2px; }
.alarm .name { font-size: 13.5px; font-weight: 600; }
.alarm .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.alarm .btns span { text-align: center; padding: 8px 0; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.22); }
.alarm .btns .taken { background: #fff; color: var(--teal); }

/* Split sections: text beside a screenshot */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split .text h2 { margin-bottom: 16px; }
.split .text .lede { margin: 0; }
.split .shot { display: flex; justify-content: center; }
.split .phone { width: min(300px, 74vw); }
.split.rev .shot { order: -1; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks b { color: var(--ink); font-weight: 600; }
.shot-card { width: 100%; max-width: 520px; border-radius: var(--radius); padding: clamp(14px, 3vw, 24px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.shot-card img { border-radius: 18px; width: 100%; height: auto; box-shadow: 0 18px 40px rgba(18, 64, 58, 0.18); }
.shot-card .caption { font-size: 13px; color: var(--faint); text-align: center; margin: 14px 0 0; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { border-radius: 22px; padding: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.feat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.feat .chip-ic { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 16px; }
.feat .chip-ic svg { width: 19px; height: 19px; }
.feat h3 { font-size: 16px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }

/* Free */
.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.price-card { border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); background: var(--card-a); }
.price-card.pro { background: var(--card-c); }
.price-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--heading); }
.price-card .amount { font: 400 52px/1 var(--serif); margin: 14px 0 6px; color: var(--heading); }
.price-card .amount i { font-style: normal; color: var(--coral); }
.price-card .sub { color: var(--faint); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--muted); }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.price-card.pro li::before { content: "–"; color: var(--coral); }

/* Closing call to action */
.cta { text-align: center; padding-top: 140px; padding-bottom: 120px; }
.cta h2 { max-width: 760px; margin: 0 auto 28px; }
.cta .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.inline-ic { display: inline-grid; place-items: center; width: 0.9em; height: 0.9em; border-radius: 0.26em; vertical-align: -0.06em; color: #fff; margin: 0 0.06em; }
.inline-ic svg { width: 0.5em; height: 0.5em; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .note { flex-basis: 100%; margin: 6px 0 0; font-size: 12.5px; max-width: 720px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* Text pages (privacy, support) */
.legal { max-width: 720px; padding-top: 72px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.legal h2 { font-size: 24px; margin: 40px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--link); }
.legal .updated { color: var(--faint); font-size: 15px; }
.legal .lede { margin: 0 0 8px; max-width: none; }
.callout { border-radius: 18px; padding: 16px 20px; margin: 28px 0 0; background: var(--card-c); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px !important; color: var(--muted); }
.callout b { color: var(--ink); }
.qa { border-radius: 22px; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 22px; margin-top: 20px; }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa details:last-child { border: 0; }
.qa summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p, .qa details ul { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.qa details li { font-size: 16px; }
.contact { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-radius: 22px; padding: 20px 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.contact p { margin: 0; font-size: 16px; }
.legal .btn { color: var(--btn-fg); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: 1fr; max-width: 440px; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .text .lede { margin: 0 auto; }
  .split.rev .shot { order: 0; }
  .ticks { max-width: 440px; margin-left: auto; margin-right: auto; text-align: left; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .btn { padding: 9px 14px; font-size: 13.5px; }
  section.block { padding-top: 88px; }
  .grid { gap: 10px; }
  .feat { padding: 16px; }
  .feat .chip-ic { width: 34px; height: 34px; margin-bottom: 12px; }
  .feat h3 { font-size: 15px; }
  .feat p { font-size: 13px; }
  .orb { width: 50px; height: 50px; } .orb span { width: 32px; height: 32px; border-radius: 10px; }
  .orb.o1 { left: -22px; } .orb.o2 { right: -22px; } .orb.o3 { left: -16px; } .orb.o4 { right: -18px; }
  .price-card { padding: 22px; }
  .cta { padding-top: 110px; padding-bottom: 96px; }
  .legal { padding-top: 40px; }
  .qa { padding: 4px 16px; }
  .blob { filter: blur(50px); }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
