/* İndirgen site. The colours are the app's own (web/app.css): dark by
   default, light when the system asks for it or the visitor picks it. */
:root{
  --bg:#0f1115; --bg2:#13161c; --surface:#181b22; --surface2:#1e222b; --line:#2a2f3b; --line2:#353b49;
  --text:#e8eaef; --muted:#9aa1b3; --accent:#e3a34a; --accent-text:#e3a34a; --accent-ink:#1a1206;
  --accent-soft:rgba(227,163,74,.13); --shadow:0 24px 60px -24px rgba(0,0,0,.7);
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Noto Sans",sans-serif;
  --mono:ui-monospace,"JetBrains Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --radius:12px;
  --gutter:16px;
  --measure:38rem;
  --page:72rem;
  --fs-body:clamp(1rem,.96rem + .2vw,1.0625rem);
  --fs-h2:clamp(1.75rem,1.3rem + 2vw,2.75rem);
  --fs-h1:clamp(2.75rem,1.6rem + 6vw,6.25rem);
  --sp-section:clamp(3.5rem,2.5rem + 5vw,7rem);
  color-scheme:dark;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f5f3ef; --bg2:#efece6; --surface:#ffffff; --surface2:#f7f5f1; --line:#e2ddd4; --line2:#d3ccc0;
    --text:#1d1f24; --muted:#5b6170; --accent:#b8761c; --accent-text:#8a5812; --accent-ink:#1a1206;
    --accent-soft:rgba(184,118,28,.11); --shadow:0 24px 50px -28px rgba(80,60,30,.35);
    color-scheme:light;
  }
}
:root[data-theme="light"]{
  --bg:#f5f3ef; --bg2:#efece6; --surface:#ffffff; --surface2:#f7f5f1; --line:#e2ddd4; --line2:#d3ccc0;
  --text:#1d1f24; --muted:#5b6170; --accent:#b8761c; --accent-text:#8a5812; --accent-ink:#1a1206;
  --accent-soft:rgba(184,118,28,.11); --shadow:0 24px 50px -28px rgba(80,60,30,.35);
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:5rem;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:var(--fs-body)/1.6 var(--sans);-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
img{display:block;max-width:100%;height:auto}
a{color:var(--accent-text);text-underline-offset:.2em;text-decoration-thickness:1px}
code{font:.9em var(--mono);background:var(--surface2);border:1px solid var(--line);border-radius:6px;padding:.05em .35em}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.sprite{position:absolute}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:var(--gutter);top:-4rem;z-index:30;background:var(--accent);color:var(--accent-ink);padding:.6rem 1rem;border-radius:8px;font-weight:650;text-decoration:none}
.skip:focus{top:.75rem}
html.js .nojs-only{display:none}
/* Turkish replaces the English text when site.js runs; until then the page
   stays hidden, and shows anyway after 1.5 s if the script never comes. */
html.js[lang="tr"]:not(.ready) body{opacity:0;animation:reveal 0s 1.5s forwards}
@keyframes reveal{to{opacity:1}}
html:not(.js) .js-only{display:none}

/* top bar */
.bar{max-width:var(--page);margin-inline:auto;padding-inline:var(--gutter);display:flex;align-items:center;gap:1rem}
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.top .bar{min-height:4rem}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;font-weight:700;font-size:1.125rem;letter-spacing:.01em}
.brand svg{width:1.9rem;height:1.9rem;color:var(--accent);fill:var(--accent)}
.nav{display:none;gap:.25rem;margin-inline-start:auto}
.nav a{color:var(--muted);text-decoration:none;padding:.5rem .7rem;border-radius:8px;font-size:.95rem}
.prefs{display:flex;gap:.5rem;margin-inline-start:auto}
.seg{display:flex;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:1px}
.seg button{min-width:2.75rem;min-height:2.625rem;border:0;background:none;border-radius:8px;color:var(--muted);font-size:.85rem;font-weight:600;cursor:pointer;display:grid;place-items:center;padding:0 .55rem}
.seg button svg{width:1.1rem;height:1.1rem}
.seg button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-text)}
@media (min-width:420px){ .brand span{display:inline} }
@media (max-width:419.98px){ .top .brand span{display:none} }
@media (min-width:880px){ .nav{display:flex} .prefs{margin-inline-start:.5rem} }

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.55rem;min-height:3rem;padding:.7rem 1.25rem;border-radius:10px;border:1px solid var(--line2);background:var(--surface);color:var(--text);font-weight:650;text-decoration:none;cursor:pointer;
  transition:background-color .15s var(--ease-out),border-color .15s var(--ease-out),transform .1s var(--ease-out)}
.btn svg{width:1.15rem;height:1.15rem;flex:none}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn:active,.seg button:active,.copy:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){
  .btn:hover{border-color:var(--muted)}
  .btn.primary:hover{background:color-mix(in srgb,var(--accent) 88%,var(--text))}
  .nav a:hover,.seg button:hover{color:var(--text)}
  .shot-link:hover img{border-color:var(--line2)}
}

/* sections */
main{display:block}
.hero,.band{max-width:var(--page);margin-inline:auto;padding-inline:var(--gutter)}
.band{padding-block:var(--sp-section);border-top:1px solid var(--line)}
h1,h2,h3{line-height:1.1;margin:0;text-wrap:balance}
h2{font-size:var(--fs-h2);font-weight:750;letter-spacing:-.02em;margin-bottom:1rem}
.intro{max-width:var(--measure);color:var(--muted);margin:0 0 2.5rem}

/* hero: the "i" of the logo. Its dot sits by the headline, its stem runs
   down beside the text and turns into the arrow that points at the app. */
.hero{display:grid;grid-template-columns:1.1rem 1fr;column-gap:1rem;padding-block:clamp(2.5rem,1.5rem + 5vw,5.5rem) var(--sp-section)}
.mark{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:.9rem;--dot:1.1rem;--stem:.55rem;--head:.45rem;--head-h:1.1rem}
.mark::before{content:"";flex:none;width:var(--dot);aspect-ratio:1;border-radius:50%;background:var(--accent);margin-top:calc(var(--fs-h1) * .48 - var(--dot) / 2)}
.mark::after{content:"";flex:1;width:var(--stem);background:var(--accent);
  clip-path:polygon(0 0,100% 0,100% calc(100% - var(--head-h)),calc(100% + var(--head)) calc(100% - var(--head-h)),50% 100%,calc(0% - var(--head)) calc(100% - var(--head-h)),0 calc(100% - var(--head-h)));
  transform-origin:top;animation:stem .9s var(--ease-out) .15s both}
@keyframes stem{from{transform:scaleY(0)}}
.hero-text{grid-column:2;grid-row:1;min-width:0}
h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.035em;line-height:.95;margin:0 0 1.5rem}
h1 .drop{display:inline-block}
.lead{font-size:clamp(1.0625rem,1rem + .35vw,1.25rem);max-width:var(--measure);margin:0 0 2rem}
.cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1.25rem}
.fine{color:var(--muted);font-size:.925rem;margin:0}
.hero-shot{grid-column:1 / -1;margin:clamp(1.25rem,.75rem + 2vw,2.25rem) 0 0}
.hero-shot img,.gallery img,.phones img{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:var(--surface)}
@media (min-width:760px){
  .hero{grid-template-columns:2rem 1fr;column-gap:1.75rem}
  .mark{--dot:2rem;--stem:1rem;--head:.75rem;--head-h:1.75rem;gap:1.25rem}
}

/* gallery */
.gallery{display:grid;gap:2.5rem 2rem}
.gallery figure,.phones figure{margin:0}
.shot-link{display:block;border-radius:var(--radius)}
.shot-link img{transition:border-color .15s var(--ease-out)}
figcaption{margin-top:1rem;max-width:var(--measure);color:var(--muted)}
figcaption b{display:block;color:var(--text);font-weight:650;margin-bottom:.15rem}
.credit{margin:2.5rem 0 0;color:var(--muted);font-size:.925rem;max-width:var(--measure)}
@media (min-width:760px){ .gallery{grid-template-columns:1fr 1fr} }

/* facts: a term and its explanation, a hairline above each */
.facts{display:grid;gap:0 2.5rem;margin:0}
.facts>div{border-top:1px solid var(--line);padding:1.1rem 0 1.4rem}
.facts dt{font-weight:650;margin-bottom:.3rem}
.facts dd{margin:0;color:var(--muted)}
.facts .warn{border-top:2px solid var(--accent)}
.facts .warn dt{color:var(--accent-text)}
@media (min-width:760px){ .facts{grid-template-columns:1fr 1fr} }
@media (min-width:1100px){ .facts:not(.one){grid-template-columns:repeat(3,1fr)} }
.facts.one{grid-template-columns:1fr}

/* phone */
.phone{display:grid;gap:3rem}
.phones{display:grid;grid-template-columns:1fr 1fr;gap:clamp(.75rem,.5rem + 1.5vw,1.5rem);align-self:start;max-width:34rem}
.phones img{border-radius:calc(var(--radius) * 1.6)}
.phones figure:nth-child(2){margin-top:clamp(1.5rem,1rem + 3vw,3.5rem)}
@media (min-width:960px){ .phone{grid-template-columns:1fr 1fr;gap:4rem;align-items:start} .phone .intro{margin-bottom:1.5rem} }

/* install */
.tabs{display:inline-flex;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:2px;margin-bottom:1.25rem}
.tabs [role=tab]{min-height:2.75rem;min-width:6rem;border:0;border-radius:10px;background:none;color:var(--muted);font-weight:650;cursor:pointer;padding:0 1.1rem}
.tabs [role=tab][aria-selected="true"]{background:var(--accent-soft);color:var(--accent-text)}
.panel{max-width:52rem}
.panel h3{font-size:1.15rem;margin:1.5rem 0 .75rem}
.panel p,.after{max-width:var(--measure);color:var(--muted)}
.panel p code,.after code,.faq code{color:var(--text)}
.code{position:relative;display:grid;gap:.5rem}
.code pre{margin:0;padding:1rem 1.1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);font:.875rem/1.65 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}
.code pre code{font:inherit;background:none;border:0;padding:0;color:var(--text)}
.copy{justify-self:end;display:inline-flex;align-items:center;gap:.45rem;min-height:2.75rem;padding:0 .9rem;border-radius:9px;border:1px solid var(--line2);background:var(--surface2);color:var(--text);font-size:.9rem;font-weight:600;cursor:pointer}
.copy svg{width:1rem;height:1rem}
.copy[data-done]{color:var(--accent-text);border-color:var(--accent)}
@media (min-width:600px){
  .code pre{padding-right:7.5rem}
  .copy{position:absolute;top:.5rem;right:.5rem}
}
.after{margin:2rem 0 0}

/* questions */
.faq{max-width:52rem;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 2.5rem 1.1rem 0;font-weight:650;position:relative;min-height:2.75rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:.25rem;top:50%;translate:0 -50%;font:500 1.5rem/1 var(--mono);color:var(--accent-text)}
.faq details[open] summary::after{content:"−"}
.faq p{margin:0 0 1.25rem;color:var(--muted);max-width:var(--measure)}

/* footer */
.foot{border-top:1px solid var(--line);padding-block:2rem 3rem;color:var(--muted);font-size:.95rem}
.foot .bar{flex-wrap:wrap;gap:.5rem 1.5rem}
.foot p{margin:0;flex:1 1 16rem}
.brand.small{font-size:1rem}
.brand.small svg{width:1.5rem;height:1.5rem}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .mark::after{animation:fade .3s linear both}
  .btn,.seg button,.copy{transition:background-color .15s,border-color .15s}
  .btn:active,.seg button:active,.copy:active{transform:none}
  @keyframes fade{from{opacity:0}}
}
