/* ============================================================
   aidede — scroll-synced landing page
   Palette: warm beige canvas + charcoal ink + amber accent
   ============================================================ */

:root{
  --bg:      #E2DCD5;
  --bg-2:    #EDE7DF;
  --ink:     #1A1A1A;
  --ink-70:  rgba(26,26,26,.70);
  --ink-62:  rgba(26,26,26,.66);  /* labels/disclaimer — passes AA on beige */
  --ink-45:  rgba(26,26,26,.45);  /* decorative only */
  --line:    rgba(26,26,26,.16);
  --amber:   #B9711C;   /* decorative accent (progress bar, active dot) */
  --amber-text: #8C5615;/* amber for TEXT — passes AA (4.5:1) on beige */
  --amber-2: #f2b25c;   /* glow */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --gutter: clamp(1.5rem, 6vw, 7rem);
}

*{ box-sizing:border-box; }
html,body{ margin:0; height:100%; }
html{ background:var(--bg); }

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow:hidden;                 /* the .scroller owns scrolling */
}

::selection{ background:rgba(185,113,28,.22); }

.skip{
  position:fixed; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--bg); padding:.7rem 1.1rem; border-radius:0 0 .5rem 0;
  font:600 .8rem/1 var(--sans);
}
.skip:focus{ left:0; }

/* ---------- scroll progress bar ---------- */
.progress-bar{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:120;
  background:rgba(26,26,26,.08);
}
.progress-bar span{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg, var(--amber), var(--amber-2));
  transition:width .1s linear;
}

/* ---------- fixed video stage ---------- */
.stage{
  position:fixed; inset:0; z-index:10;
  background:var(--bg);
  pointer-events:none;
  overflow:hidden;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:68% 50%;         /* bias the product toward the right */
  opacity:0;
  transition:opacity .9s var(--ease);
}
.hero-video.ready{ opacity:1; }

/* keep left-column text crisp over the video */
.stage-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg,
      rgba(226,220,213,.92) 0%,
      rgba(226,220,213,.72) 26%,
      rgba(226,220,213,.28) 46%,
      rgba(226,220,213,0)   62%),
    linear-gradient(180deg, rgba(226,220,213,.55), rgba(226,220,213,0) 12%),
    linear-gradient(0deg, rgba(226,220,213,.35), rgba(226,220,213,0) 22%);
}

.stage-loader{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; gap:.5rem;
}
.stage-loader span{
  width:9px; height:9px; border-radius:50%; background:var(--amber);
  opacity:.35; animation:blink 1.1s var(--ease) infinite;
}
.stage-loader span:nth-child(2){ animation-delay:.16s; }
.stage-loader span:nth-child(3){ animation-delay:.32s; }
.stage-loader.hide{ opacity:0; transition:opacity .5s; pointer-events:none; }
.stage-loader.hide span{ animation:none; }  /* stop compositor work once hidden */
@keyframes blink{ 0%,100%{ opacity:.25; transform:translateY(0);} 50%{ opacity:.9; transform:translateY(-4px);} }

/* ---------- navigation ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(1rem,2.4vw,1.7rem) var(--gutter);
  padding-left:max(var(--gutter), env(safe-area-inset-left));
  padding-right:max(var(--gutter), env(safe-area-inset-right));
  color:var(--ink);
}
/* Clear, high-contrast keyboard focus over both the scrim and the video */
.nav a:focus-visible, .cta-outline:focus-visible, .cta-solid:focus-visible,
.icon-btn:focus-visible, .dots button:focus-visible, .skip:focus-visible{
  outline:2px solid var(--ink); outline-offset:3px; border-radius:6px;
}
.nav a:not(.cta-outline), .nav .icon-btn{ color:var(--ink); }
.nav-left{ display:flex; gap:clamp(1rem,2.5vw,2.4rem); }
.nav-left a{
  font:600 .72rem/1 var(--sans);
  text-transform:uppercase; letter-spacing:.18em; text-decoration:none;
  opacity:.9; transition:opacity .25s;
}
.nav-left a:hover{ opacity:.55; }
/* The brand is now a mark, not type — no font-family, no letter-spacing to set.
   Sized by height alone; the wordmark's 3.52:1 aspect supplies the width.
   The old Fraunces "Fısıltı" ran 24-32px cap height, and Fraunces' x-height is
   ~.52 em, so a 26-30px wordmark box matches what stood here before rather than
   what the old font-size number said. */
.brand{ display:flex; align-items:center; text-decoration:none; line-height:0; }
.brand img{ display:block; width:auto; }
.brand .brand-word{ height:clamp(26px, 3.2vw, 30px); }
.brand .brand-moon{ display:none; height:26px; border-radius:6px; }
.nav-right{ display:flex; align-items:center; gap:clamp(.8rem,1.6vw,1.3rem); }
.icon-btn{
  display:grid; place-items:center; width:34px; height:34px;
  background:none; border:0; cursor:pointer; padding:0;
  text-decoration:none;
  opacity:.9; transition:opacity .25s, transform .25s;
}
.icon-btn:hover{ opacity:.55; transform:translateY(-1px); }
.cta-outline{
  font:700 .72rem/1 var(--sans);
  text-transform:uppercase; letter-spacing:.16em; text-decoration:none;
  padding:.8rem 1.25rem; border-radius:999px;
  color:var(--bg); background:var(--ink);
  transition:transform .25s var(--ease), background .25s;
}
.cta-outline:hover{ background:var(--amber); transform:translateY(-1px); }

/* ---------- dot navigation ---------- */
.dots{
  position:fixed; right:clamp(.7rem,1.6vw,1.5rem); top:50%; z-index:100;
  transform:translateY(-50%);
  display:flex; flex-direction:column; gap:.85rem;
}
.dots button{
  display:flex; align-items:center; gap:.6rem; justify-content:flex-end;
  background:none; border:0; cursor:pointer; padding:0; color:var(--ink);
}
.dots i{
  width:8px; height:8px; border-radius:50%;
  border:1.5px solid rgba(26,26,26,.4); background:transparent;
  transition:all .3s var(--ease);
}
.dots em{
  font:600 .68rem/1 var(--sans); font-style:normal;
  text-transform:uppercase; letter-spacing:.12em;
  opacity:0; transform:translateX(6px); transition:all .3s var(--ease);
  white-space:nowrap;
}
.dots button:hover em{ opacity:.8; transform:translateX(0); color:var(--amber); }
.dots button.active i{ background:var(--amber); border-color:var(--amber); transform:scale(1.25); }

/* ---------- scroll layer & panels ---------- */
.scroller{
  position:relative; z-index:20;
  height:100vh; height:100dvh;
  overflow-y:scroll; overflow-x:hidden;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.panel{
  position:relative;
  height:100vh; height:100dvh;
  scroll-snap-align:start; scroll-snap-stop:always;
  display:flex; align-items:center;
  padding:0 var(--gutter);
  padding-left:max(var(--gutter), env(safe-area-inset-left));
  padding-right:max(var(--gutter), env(safe-area-inset-right));
}
.col{ max-width:min(46ch, 52vw); }

/* typography */
.eyebrow{
  font:700 .78rem/1 var(--sans);
  text-transform:uppercase; letter-spacing:.26em; color:var(--amber-text);
  margin:0 0 1.4rem;
}
.headline{ margin:0; line-height:.92; letter-spacing:-.03em; }
.headline .h-sans{
  display:block; font-family:var(--sans); font-weight:800;
  font-size:clamp(2.7rem, 7.4vw, 6.6rem);
}
.headline .h-serif{
  display:block; font-family:var(--serif); font-weight:400; font-style:italic;
  font-size:clamp(2.2rem, 6vw, 5.2rem); letter-spacing:-.01em;
  margin-top:.06em; color:var(--ink-70);
}
.lede{
  font:400 clamp(1.05rem,1.5vw,1.35rem)/1.55 var(--sans);
  color:var(--ink-70); max-width:34ch; margin:1.8rem 0 0;
}
.body{
  font:400 clamp(.98rem,1.25vw,1.12rem)/1.65 var(--sans);
  color:var(--ink-70); max-width:38ch; margin:1.6rem 0 0;
}
.fineprint{ font:500 .78rem/1.4 var(--sans); color:var(--ink-62); margin:1.1rem 0 0; letter-spacing:.01em; }

/* metric overlay (right side, echoing the product spec look). It sits over the
   un-scrimmed video zone, so a soft cream text-shadow keeps it legible on any
   frame. */
.metric{
  position:absolute; right:var(--gutter); top:50%; transform:translateY(-50%);
  text-align:right; z-index:1;
  text-shadow:0 1px 12px rgba(226,220,213,.9), 0 0 2px rgba(226,220,213,.8);
}
.metric-label{
  display:block; font:700 .72rem/1 var(--sans);
  text-transform:uppercase; letter-spacing:.2em; color:var(--ink-62); margin-bottom:.5rem;
}
.metric-value{
  display:block; font-family:var(--serif); font-weight:400;
  font-size:clamp(3rem,7vw,6.5rem); line-height:.9; letter-spacing:-.02em;
}
.metric-value b{ font-weight:400; color:var(--amber-text); }
.metric-value.metric-sm{ font-size:clamp(1.7rem,3.4vw,3rem); line-height:1.02; }
.metric-pre{
  display:block; font-family:var(--sans); font-weight:700; font-size:.72rem;
  text-transform:uppercase; letter-spacing:.18em; color:var(--ink-62);
  margin-bottom:.2rem;
}

/* buttons */
.cta-solid{
  display:inline-block; margin-top:2rem;
  font:700 .82rem/1 var(--sans); text-transform:uppercase; letter-spacing:.14em;
  text-decoration:none; color:var(--bg); background:var(--ink);
  padding:1.05rem 1.7rem; border-radius:999px;
  transition:transform .3s var(--ease), background .3s;
}
.cta-solid:hover{ transform:translateY(-2px); background:var(--amber); }

/* footer inside last panel */
.foot{
  position:absolute; left:var(--gutter); bottom:calc(clamp(1.4rem,3vw,2.6rem) + env(safe-area-inset-bottom));
  display:flex; gap:1.2rem; align-items:baseline; flex-wrap:wrap;
  font:500 .82rem/1.3 var(--sans); color:var(--ink-62);
}
.foot span:first-child{ font-family:var(--serif); color:var(--ink); font-size:1rem; }

/* hero scroll cue */
.scroll-cue{
  position:absolute; left:50%; bottom:clamp(1.4rem,3vw,2.4rem); transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.55rem; color:var(--ink-45);
}
.scroll-cue span{ font:600 .7rem/1 var(--sans); text-transform:lowercase; letter-spacing:.2em; }
.scroll-cue i{
  width:1px; height:34px; background:linear-gradient(var(--ink-45), transparent);
  animation:cue 1.8s var(--ease) infinite;
}
@keyframes cue{ 0%{ transform:scaleY(.3); transform-origin:top; opacity:.3;} 50%{ transform:scaleY(1); opacity:1;} 100%{ transform:scaleY(.3); transform-origin:bottom; opacity:.3;} }

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.panel.in .reveal{ opacity:1; transform:none; }
.panel.in .reveal:nth-child(2){ transition-delay:.08s; }
.panel.in .reveal:nth-child(3){ transition-delay:.16s; }
.panel.in .reveal:nth-child(4){ transition-delay:.24s; }
.panel.leaving .reveal{ opacity:0; transform:translateY(-40px); }

/* ---------- responsive: mobile stacks, video becomes ambient ---------- */
@media (max-width: 860px){
  .hero-video{ object-position:50% 42%; }
  .stage-scrim{
    background:
      linear-gradient(180deg,
        rgba(226,220,213,.72) 0%,
        rgba(226,220,213,.42) 30%,
        rgba(226,220,213,.55) 62%,
        rgba(226,220,213,.9) 100%);
  }
  .dots{ display:none; }
  .nav{ padding:1rem 1.3rem; }
  .nav-left{ display:none; }
  .col{ max-width:100%; }
  .panel{ flex-direction:column; align-items:flex-start; justify-content:flex-end; padding-bottom:16vh; }
  .panel.hero{ justify-content:center; }
  .metric{
    position:static; transform:none; text-align:left;
    margin-top:1.6rem;
  }
  .headline .h-sans{ font-size:clamp(2.6rem,13vw,4rem); }
  .headline .h-serif{ font-size:clamp(2rem,10vw,3.2rem); }
  .lede, .body{ max-width:100%; }
  .foot{ position:static; margin-top:2rem; }
}

/* Narrow phones: .nav-right (account + search + the uppercase CTA) already claims
   most of a 320px row, so the 3.52:1 wordmark has nowhere to go. Fall back to the
   brand's own sub-24px rule and show the moon alone. */
@media (max-width: 480px){
  .brand .brand-word{ display:none; }
  .brand .brand-moon{ display:block; }
}

/* very small height (landscape phones): keep everything inside 100dvh */
@media (max-height: 480px){
  .panel{ justify-content:center; padding-bottom:0; }
  .panel.hero{ justify-content:center; }
  .headline .h-sans{ font-size:clamp(1.9rem, 7vw, 2.4rem); }
  .headline .h-serif{ font-size:clamp(1.5rem, 5.5vw, 2rem); }
  .lede, .body{ margin-top:.9rem; }
  .metric{ margin-top:1rem; }
  .scroll-cue{ display:none; }
}

/* ---------- pricing / subscription + veli yorumları panels ----------
   Both can outgrow one viewport (stacked cards on mobile), so they trade
   the rigid 100dvh slide for height:auto + nav-clearing top padding. */
.panel.pricing, .panel.quotes{
  height:auto; min-height:100vh; min-height:100dvh;
  flex-direction:column; align-items:flex-start; justify-content:center;
  padding-top:clamp(5.5rem, 12vh, 8rem);
  padding-bottom:calc(clamp(1.6rem, 4vh, 3rem) + env(safe-area-inset-bottom));
}
.panel.pricing .headline .h-sans, .panel.quotes .headline .h-sans{ font-size:clamp(2.2rem, 4.8vw, 4.4rem); }
.panel.pricing .headline .h-serif, .panel.quotes .headline .h-serif{ font-size:clamp(1.8rem, 4vw, 3.6rem); }
.col-wide{ max-width:min(76ch, 86vw); }

/* Üç kademeli abonelik (Ücretsiz / Başlangıç / aidede+): 76ch'e iki kart
   sığdığı için üçüncüsü alt satıra düşüyor ve öne çıkan plan görsel olarak
   geri plana atılıyordu. Masaüstünde sütunu genişletip .plans'i 3'lü ızgaraya
   çeviriyoruz — eşit genişlik, eşit yükseklik. Mobil (<=860px) tek kolona
   inen mevcut kuralı kullanmaya devam eder. */
@media (min-width: 861px){
  .panel.pricing .col-wide{ max-width:min(104ch, 92vw); }
  .panel.pricing .plans{ display:grid; grid-template-columns:repeat(3, 1fr); }
  .panel.pricing .plan{ max-width:none; }
}

/* ---- veli yorumları (#yorumlar) — kart dili .plan ile aynı ---- */
.quote-grid{ display:flex; flex-wrap:wrap; align-items:stretch; gap:clamp(.9rem, 2vw, 1.4rem); margin-top:2rem; }
.quote{
  flex:1 1 240px; max-width:340px; margin:0;
  display:flex; flex-direction:column; gap:1rem;
  background:rgba(237,231,223,.82);
  border:1px solid var(--line); border-radius:18px;
  padding:1.35rem 1.5rem 1.4rem;
}
.quote blockquote{
  margin:0; font-family:var(--serif); font-weight:400;
  font-size:clamp(1rem, 1.6vw, 1.15rem); line-height:1.55; letter-spacing:-.01em;
}
.quote blockquote::before{
  content:"\201C"; display:block;
  font-size:2.2rem; line-height:.6; color:var(--amber); margin-bottom:.45rem;
}
.quote figcaption{
  margin-top:auto; display:flex; flex-direction:column; gap:.15rem;
  border-top:1px solid var(--line); padding-top:.85rem;
}
.quote figcaption b{ font:700 .8rem/1.3 var(--sans); }
.quote figcaption span{
  font:600 .7rem/1.3 var(--sans); color:var(--ink-62);
  letter-spacing:.06em; text-transform:uppercase;
}

.plans{ display:flex; flex-wrap:wrap; align-items:stretch; gap:clamp(.9rem, 2vw, 1.5rem); margin-top:2rem; }
.plan{
  position:relative; flex:1 1 250px; max-width:340px;
  display:flex; flex-direction:column;
  background:rgba(237,231,223,.82);
  border:1px solid var(--line); border-radius:18px;
  padding:1.35rem 1.5rem 1.5rem;
}
.plan.featured{
  border-color:rgba(185,113,28,.55);
  box-shadow:0 14px 44px -20px rgba(26,26,26,.38);
}
.plan-badge{
  position:absolute; top:-.72em; right:1.1rem;
  background:var(--amber); color:#fff;
  font:700 .6rem/1 var(--sans); text-transform:uppercase; letter-spacing:.14em;
  padding:.5em .85em; border-radius:999px;
}
.plan h3{
  margin:0; font:800 .78rem/1 var(--sans);
  text-transform:uppercase; letter-spacing:.18em;
}
.plan-price{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2rem, 3.2vw, 2.8rem); letter-spacing:-.02em;
  margin:.55rem 0 0;
}
.plan-price span{ font:600 .78rem/1 var(--sans); color:var(--ink-62); letter-spacing:.02em; }
.plan-alt{ font:600 .74rem/1.35 var(--sans); color:var(--amber-text); margin:.25rem 0 0; }
.plan ul{ list-style:none; margin:1rem 0 1.25rem; padding:0; display:grid; gap:.5rem; }
.plan li{
  position:relative; padding-left:1.1rem;
  font:400 .88rem/1.45 var(--sans); color:var(--ink-70);
}
.plan li::before{
  content:""; position:absolute; left:0; top:.52em;
  width:6px; height:6px; border-radius:50%; background:var(--amber);
}
.plan-cta{
  display:block; margin-top:auto; text-align:center; text-decoration:none;
  font:700 .74rem/1 var(--sans); text-transform:uppercase; letter-spacing:.14em;
  color:var(--bg); background:var(--ink);
  padding:.95rem 1rem; border-radius:999px;
  transition:transform .25s var(--ease), background .25s;
}
.plan-cta:hover{ background:var(--amber); transform:translateY(-1px); }
.plan-cta.ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); }
.plan-cta.ghost:hover{ background:var(--ink); color:var(--bg); }
.plan-cta[aria-disabled="true"]{ opacity:.55; cursor:default; pointer-events:none; }

/* pricing footer: static (the panel grows), legal links */
.foot.foot-legal{
  position:static; margin-top:clamp(1.6rem, 4vh, 2.6rem);
  display:flex; flex-wrap:wrap; gap:.8rem 1.4rem; align-items:baseline;
}
/* 24px is the wordmark's stated minimum; below it the letterforms stop resolving
   and the mark should become the moon alone. The companion crescent that used to
   trail the word is deleted with the markup — the wordmark brings its own. */
.foot-brand{ display:inline-flex; align-items:center; line-height:0; }
.foot-brand img{ display:block; height:24px; width:auto; }
.foot-links{ display:flex; flex-wrap:wrap; gap:.7rem 1.2rem; }
.foot-links a{
  color:var(--ink-62); text-decoration:none;
  font:600 .74rem/1.3 var(--sans);
  border-bottom:1px solid transparent; padding-bottom:1px;
  transition:color .25s, border-color .25s;
}
.foot-links a:hover{ color:var(--amber-text); border-bottom-color:currentColor; }
.foot-company{ width:100%; font:500 .72rem/1.5 var(--sans); color:var(--ink-45); }

@media (max-width: 860px){
  .panel.pricing{ justify-content:flex-start; padding-bottom:calc(2.2rem + env(safe-area-inset-bottom)); }
  .plans{ width:100%; }
  .plan{ max-width:100%; flex-basis:100%; }
  .quote-grid{ width:100%; }
  .quote{ max-width:100%; flex-basis:100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none; }
  .scroll-cue i, .stage-loader span{ animation:none; }
  .scroller{ scroll-behavior:auto; }
}
