/* ===================================================================
   Findin website
   Warm light page (Klack-like) with one dark band (Droppy-like).
   =================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #FDF7F0;
  --paper-2: #F6EDE3;
  --ink: #2B2622;
  --ink-2: #6E655D;
  --ink-3: #A79D93;
  --accent: #C93BD6;
  --accent-2: #E46AF7;
  --hl: #F2B3F7;
  --line: rgba(43, 38, 34, .09);
  --r: 22px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-apple: cubic-bezier(.28, .11, .32, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* Squircle corners where the browser supports them (same shape as the app). */
.sq, .btn, .card, .stage, .clip, .win, .ql__card, .feats li, .faq details {
  border-radius: var(--r);
}
@supports (corner-shape: squircle) {
  .sq, .btn, .card, .stage, .clip, .win, .ql__card, .feats li, .faq details {
    corner-shape: squircle;
    border-radius: calc(var(--r) * 1.8);
  }
  .btn--sm { border-radius: 26px; }
}

.h2 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 750;
  margin: 0 0 20px;
}
.center { text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--accent);
}
.lead { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.small { font-size: 13px; color: var(--ink-3); }

/* ---------------- Buttons ---------------- */
.btn {
  --r: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650;
  padding: 14px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -8px rgba(43, 38, 34, .55); }
.btn--dark:hover { box-shadow: 0 16px 30px -10px rgba(43, 38, 34, .55); }
.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--light:hover { background: #EFE3D6; }
.btn--sm { --r: 14px; padding: 10px 16px; font-size: 15px; }
.btn--lg { padding: 18px 26px; font-size: 18px; }
.btn--full { width: 100%; justify-content: center; }
.dl { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.price-chip {
  font-size: 13px; padding: 3px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

/* ---------------- Top bar ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, calc((100vw - var(--wrap)) / 2));
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(253, 247, 240, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 21px; letter-spacing: -.02em; }
.nav__logo { --r: 9px; width: 34px; height: 34px; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav__links > a:not(.btn) { color: var(--ink-2); transition: color .2s var(--ease); }
.nav__links > a:not(.btn):hover { color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 40px; }
.hero__title {
  margin: 0;
  font-size: clamp(52px, 9.4vw, 112px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 780;
}
.hero__title .line { display: block; }
.hl {
  color: inherit;
  padding: 0 .06em;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 82% / 0% 48%;
}
.js .hl { animation: hl-draw .7s var(--ease) .75s forwards; }
.no-motion .hl, html:not(.js) .hl { background-size: 100% 48%; }
@keyframes hl-draw { to { background-size: 100% 48%; } }

.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.badges { list-style: none; display: flex; gap: 22px; margin: 0 0 0 10px; padding: 0; }
.badges li { display: flex; flex-direction: column; font-size: 13px; line-height: 1.2; color: var(--ink-3); text-align: center; }
.badges b { font-size: 15px; color: var(--ink-2); }

/* ---------------- Play: wallpaper + mock window ---------------- */
.play { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 24px 24px 60px; }
.stage {
  --r: 34px;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 760px;
  width: 100%;
  background: var(--t-bg, #14061E);
  display: grid; place-items: center;
  box-shadow: 0 40px 80px -40px rgba(43, 38, 34, .45);
  transition: background-color .6s var(--ease);
}
.wall { position: absolute; inset: -10%; filter: blur(50px) saturate(1.3); }
.wall i {
  position: absolute; border-radius: 50%;
  transition: background-color .8s var(--ease);
  animation: blob 22s ease-in-out infinite alternate;
}
.wall i:nth-child(1) { width: 55%; height: 60%; left: 2%;  top: 6%;  background: var(--t-folder, #D23CF2); }
.wall i:nth-child(2) { width: 45%; height: 55%; right: 4%; top: 30%; background: var(--t-accent, #E46AF7); animation-duration: 28s; animation-delay: -6s; }
.wall i:nth-child(3) { width: 40%; height: 45%; left: 30%; bottom: -4%; background: var(--t-glow, #6B2BD9); animation-duration: 25s; animation-delay: -12s; }
.wall i:nth-child(4) { width: 22%; height: 26%; right: 26%; top: 2%; background: #ffffff; opacity: .35; animation-duration: 31s; }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, -5%) scale(1.12); }
  100% { transform: translate(-5%, 6%) scale(.92); }
}

/* the mock window lives in mock.css */

/* Theme dots under the stage */
.themes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tdot {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(#26262A, #141416);
  box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px transparent, 0 8px 16px -10px rgba(0, 0, 0, .6);
  transition: transform .3s var(--spring), box-shadow .25s var(--ease);
}
@supports (corner-shape: squircle) { .tdot { corner-shape: squircle; border-radius: 22px; } }
.tdot img { width: 100%; height: 100%; object-fit: cover; }
.tdot .sfold { transform: scale(1.5); }
.tdot:hover { transform: translateY(-3px) scale(1.08); }
.tdot[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px var(--ink), 0 8px 16px -10px rgba(0, 0, 0, .6); }
.themes__name { text-align: center; margin: 12px 0 0; font-size: 14px; color: var(--ink-3); font-weight: 600; min-height: 1.5em; }

/* ---------------- Feature grid ---------------- */
.feats { max-width: var(--wrap); margin: 0 auto; padding: 60px 24px; }
.feats .h2 { text-align: center; margin-bottom: 56px; }
.feats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 54px 24px; }
.feats li { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 10px; }
.feats svg {
  width: 64px; height: 64px; margin-bottom: 14px;
  fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--spring), stroke .3s var(--ease);
}
.feats svg .thin { stroke-width: 2; opacity: .5; }
.feats li:hover svg { transform: rotate(-8deg) scale(1.1); stroke: var(--accent); }
.feats b { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 750; position: relative; }
.feats b::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; height: 3px; width: 0; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%); transition: width .35s var(--ease);
}
.feats li:hover b::after { width: 46%; }
.feats span { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; max-width: 15em; }

.clip {
  --r: 30px;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(201, 59, 214, .45), transparent 70%),
    radial-gradient(60% 80% at 85% 80%, rgba(62, 120, 255, .38), transparent 70%),
    #141317;
  display: grid; place-items: center;
}
.clip::before {
  content: "▶  Clip goes here: " attr(data-label);
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .7);
  padding: 10px 16px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .25);
  max-width: 80%;
}
.clip.has-video::before { display: none; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip--light {
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(201, 59, 214, .25), transparent 70%),
    radial-gradient(60% 80% at 85% 80%, rgba(255, 164, 90, .3), transparent 70%),
    var(--paper-2);
}
.clip--light::before { color: var(--ink-2); border-color: rgba(43, 38, 34, .2); }

/* ---------------- Everything it does ---------------- */
.all { max-width: var(--wrap); margin: 0 auto; padding: 60px 24px; }
.all .h2 { margin-bottom: 56px; }
.grp { border-radius: 28px; background: var(--paper-2); interpolate-size: allow-keywords; }
.grp + .grp { margin-top: 16px; }
@supports (corner-shape: squircle) { .grp { corner-shape: squircle; border-radius: 50px; } }
.grp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 26px 30px; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary b { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.grp summary span { flex: 1; color: var(--ink-2); }
.grp summary i { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 22px; transition: transform .4s var(--spring); }
.grp[open] summary i { transform: rotate(45deg); }
.grp::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
.grp[open]::details-content { height: auto; }
.all__grid { columns: 2 300px; column-gap: 16px; padding: 0 16px 0; }
@media (max-width: 600px) { .grp summary span { display: none; } }
.all__card { break-inside: avoid; margin-bottom: 20px; padding: 26px 26px 22px; border-radius: 26px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(43, 38, 34, .35); }
.all__card--pro { background: linear-gradient(160deg, #FFF 40%, #FBEAFD); }
.all__card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; }
.all__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.all__card li { padding-left: 18px; position: relative; }
.all__card li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------------- Creator ---------------- */
.creator {
  max-width: var(--wrap); margin: 0 auto; padding: 60px 24px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
}
.creator .lead { margin-bottom: 0; }
.creator .h2 { font-size: clamp(38px, 4.6vw, 58px); }
.stats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.stats li { display: grid; font-size: 13px; color: var(--ink-3); }
.stats b { font-size: 34px; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); }

/* ---------------- Pricing ---------------- */
.pricing { max-width: var(--wrap); margin: 0 auto; padding: 60px 24px; }
.pricing .h2 { margin-bottom: 56px; }
.cards { display: grid; max-width: 440px; margin: 0 auto; }
.card {
  --r: 28px;
  position: relative;
  background: #fff;
  padding: 34px 28px 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(43, 38, 34, .35);
}
.card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.price { margin: 14px 0 0; font-size: 64px; line-height: 1; font-weight: 780; letter-spacing: -.05em; }
.once { margin: 6px 0 22px; color: var(--ink-3); font-size: 14px; }
.card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; align-content: start; gap: 10px; flex: 1; font-size: 15px; color: var(--ink-2); }
.card li { padding-left: 26px; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card--best { background: #fff; }  /* no transform here: it would lift the ::before gradient above the white */
.card--best::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit; corner-shape: inherit;
  background: conic-gradient(from var(--spin), #F2B3F7, var(--accent), #7C5CFF, #FFB36B, #F2B3F7);
  animation: border-travel 6s linear infinite;
}
.card--best::after {
  content: ""; position: absolute; inset: 10px -10px -30px; z-index: -2;
  background: conic-gradient(from var(--spin), #F2B3F7, var(--accent), #7C5CFF, #FFB36B, #F2B3F7);
  filter: blur(40px); opacity: .35;
  animation: border-travel 6s linear infinite;
}
@keyframes border-travel { to { --spin: 360deg; } }
.ribbon {
  position: absolute; top: 18px; right: 18px;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.promises { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.promises li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 800; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.faq .h2 { margin-bottom: 56px; }
.faq__list { display: grid; gap: 10px; }
.faq details { --r: 20px; background: #fff; box-shadow: 0 1px 0 var(--line); interpolate-size: allow-keywords; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; font-weight: 650; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 500; color: var(--ink-3); transition: transform .35s var(--spring);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------------- Final CTA + footer ---------------- */
.final { text-align: center; padding: 60px 24px 40px; display: grid; justify-items: center; gap: 18px; }
.final .h2 { margin: 0 0 10px; }
.foot { text-align: center; padding: 50px 24px 0; overflow: hidden; }
.foot__links { display: flex; justify-content: center; gap: 26px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.foot__links a:hover { color: var(--ink); }
.wordmark {
  font-size: clamp(120px, 27vw, 380px);
  font-weight: 820; letter-spacing: -.06em; line-height: .78;
  margin-top: 40px;
  background: linear-gradient(to bottom, rgba(43, 38, 34, .09), rgba(43, 38, 34, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 30px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600;
  transition: opacity .3s var(--ease), transform .5s var(--spring);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================================================================
   Animations: page load (Klack recipe) and scroll reveal (Droppy recipe)
   =================================================================== */
.js .nav { animation: nav-fade .7s var(--ease-out) both; }
.js .nav__logo { animation: logo-rise .5s var(--ease-out) .1s both; }
.js .hero__title .line { animation: title-in .55s var(--ease-out) both; transform-origin: 0 100%; }
.js .hero__title .line:nth-child(2) { animation-delay: .08s; }
.js .lift { animation: lift-in .5s var(--ease-out) both; }
.js .hero__ctas .lift:nth-child(1) { animation-delay: .3s; }
.js .hero__ctas .lift:nth-child(2) { animation-delay: .36s; }
.js .hero__ctas .lift:nth-child(3) { animation-delay: .42s; }
@keyframes nav-fade { from { opacity: 0; } }
@keyframes logo-rise { from { opacity: 0; transform: translateY(16px) scale(.75) rotate(6deg); } }
@keyframes title-in { from { opacity: 0; transform: translateY(32px) rotate(2deg); } }
@keyframes lift-in { from { opacity: 0; transform: translateY(20px); } }

.reveal-on [data-reveal] {
  opacity: 0; transform: translate3d(0, 32px, 0);
  transition: opacity .9s var(--ease-apple), transform 1.1s var(--ease-apple);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on [data-reveal="scale"] { transform: translate3d(0, 40px, 0) scale(.96); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* Anyone who asked Windows for less motion gets everything at once. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hl { background-size: 100% 48%; }
}

/* ---------------- Smaller screens ---------------- */
@media (max-width: 900px) {
  .feats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .card--best { transform: none; order: -1; }
  .creator { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 5; }
  .badges { margin-left: 0; }
}
@media (max-width: 600px) {
  .nav__links > a:not(.btn) { display: none; }
  .hero { padding-top: 30px; }
  .badges { gap: 16px; }
}
