/* Shared by index.html and akcha/index.html. Brand guidelines 2.0: Outfit + DM Mono, one ink and its neutrals.

   Light is the base. Dark is applied either by the system preference (unless the
   visitor explicitly chose light) or by an explicit data-theme="dark". Never give a
   colour its only definition inside one of the dark blocks. */
:root{
  --ink:#16181D; --paper:#FFFFFF; --soft:#F7F8F9; --muted:#5A616B; --line:#DDE0E4;
  --on-light:block; --on-dark:none;
  --font-brand:Outfit,"Avenir Next","Segoe UI",system-ui,sans-serif;
  --font-mono:"DM Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --gutter:clamp(20px,5vw,56px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ink:#ECEEF1; --paper:#0F1114; --soft:#171A1E; --muted:#A2A9B2; --line:#2A2F35;
    --on-light:none; --on-dark:block;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --ink:#ECEEF1; --paper:#0F1114; --soft:#171A1E; --muted:#A2A9B2; --line:#2A2F35;
  --on-light:none; --on-dark:block;
  color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:84px}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font:400 16.5px/1.65 var(--font-brand); -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p,ul,dl,dd,figure{margin:0}
img,svg{display:block}
a{color:inherit; text-underline-offset:3px}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--ink); outline-offset:3px; border-radius:2px}
.sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* Theme-matched files (the logo): the light one by default, the inverse one in dark. */
.on-light{display:var(--on-light)}
.on-dark{display:var(--on-dark)}

.wrap{max-width:1200px; margin:0 auto; padding-inline:var(--gutter)}

/* Motion: content below the fold rises in once. Nothing moves for reduced motion. */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  [data-reveal]{transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1)}
  html[data-motion] [data-reveal]:not([data-in]){opacity:0; transform:translateY(12px)}
}
@media print{
  html[data-motion] [data-reveal]{opacity:1 !important; transform:none !important}
}

/* ---- type ---- */
.label{
  font-family:var(--font-mono); font-weight:500; font-size:11.5px; line-height:1.5;
  letter-spacing:.07em; text-transform:uppercase; color:var(--muted);
}
.display{
  font-weight:600; font-size:clamp(38px,5.4vw,64px); line-height:1.05; letter-spacing:-.035em;
  max-width:11em; text-wrap:balance;
}
.lede{
  font-size:clamp(18px,1.7vw,20px); line-height:1.55; color:var(--muted);
  margin-top:clamp(20px,2.4vw,28px); max-width:44ch; text-wrap:pretty;
}
.title{font-weight:600; font-size:clamp(28px,3.4vw,40px); line-height:1.1; letter-spacing:-.025em}
.subhead{font-weight:600; font-size:clamp(17px,1.6vw,19px); line-height:1.3; letter-spacing:-.01em}
.intro{
  font-size:clamp(17px,1.6vw,19px); line-height:1.6;
  margin-bottom:clamp(28px,3.4vw,40px); max-width:56ch; text-wrap:pretty;
}
.small{font-size:15.5px; line-height:1.6; color:var(--muted); text-wrap:pretty}
.aside{font-size:15px; line-height:1.6; color:var(--muted)}
/* The akcha wordmark is set in akcha's own face; only these five letters are loaded. */
.wordmark{font-family:"Space Grotesk",var(--font-brand); font-weight:700; line-height:1; letter-spacing:-.025em}

/* ---- links and buttons ---- */
.btn{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px;
  border-radius:8px; background:var(--ink); color:var(--paper); border:1px solid var(--ink);
  font-weight:500; font-size:15px; line-height:1; text-decoration:none; transition:opacity .15s ease;
}
.btn:hover{color:var(--paper); opacity:.88}
.btn-line{
  display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px;
  border-radius:8px; border:1px solid var(--line); color:var(--ink);
  font-weight:500; font-size:14px; line-height:1; text-decoration:none; transition:border-color .15s ease;
}
.btn-line:hover{border-color:var(--muted)}
.link{
  font-weight:500; color:var(--ink);
  text-decoration-line:underline; text-decoration-color:var(--line); text-underline-offset:4px;
  transition:text-decoration-color .15s ease;
}
.link:hover{text-decoration-color:var(--ink)}
.link-arrow{display:inline-flex; align-items:center; gap:6px; font-size:15px}
/* Apple's "Download on the App Store" badge, kept as Apple supplies it: no hover treatment,
   at least 40px tall, and a quarter of its height clear all round (the gaps beside it give
   that). The radius only shapes the focus ring. */
.store-badge{display:inline-flex; flex:none; border-radius:10px}
.store-badge img{height:44px; width:auto}

/* ---- header ---- */
.site-header{
  position:sticky; top:0; z-index:20; background:var(--paper);
  border-bottom:1px solid transparent; transition:border-color .25s ease;
}
.site-header.stuck, .site-header.ruled{border-bottom-color:var(--line)}
.site-header .wrap{
  min-height:72px; display:flex; flex-wrap:wrap; align-items:center; gap:0 clamp(12px,3vw,32px);
}
.brand{display:flex; align-items:center; margin-right:auto; padding:8px 0}
.brand img{height:28px; width:auto}
.site-nav{display:flex; flex-wrap:wrap; gap:0 clamp(12px,2.4vw,28px)}
.site-nav a{
  font-size:clamp(14px,3.9vw,14.5px); line-height:1; color:var(--muted);
  text-decoration:none; padding:10px 0; transition:color .15s ease;
}
.site-nav a:hover, .site-nav a.current{color:var(--ink)}

/* ---- hero ---- */
.hero{padding-block:clamp(56px,9vw,128px) clamp(64px,8vw,112px)}
.hero-grid{display:flex; flex-wrap:wrap; align-items:flex-end; gap:clamp(40px,6vw,80px)}
.hero-main{flex:1 1 520px; min-width:0}
.actions{display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; margin-top:clamp(28px,3.4vw,40px)}
.actions .link{display:inline-flex; align-items:center; min-height:44px; font-size:15px}

.register{
  flex:0 1 400px; min-width:min(100%,300px); padding:4px 24px;
  background:var(--soft); border-radius:16px; box-shadow:inset 0 0 0 1px var(--line);
}
.register div{display:grid; grid-template-columns:88px minmax(0,1fr); gap:16px; padding:13px 0}
.register div + div{border-top:1px solid var(--line)}
.register dt{padding-top:3px}
.register dd{font-size:15.5px; line-height:1.5}
.register .link{text-underline-offset:3px}
.num{font-variant-numeric:tabular-nums}

/* ---- sections: a heading column and a body column ---- */
.band{border-top:1px solid var(--line)}
.section{
  padding-block:clamp(64px,8vw,112px);
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:clamp(20px,3vw,32px) clamp(24px,5vw,64px);
}
.section-head{flex:0 0 180px}
.section-body{flex:1 1 560px; min-width:0; max-width:800px}
.section-body.wide{max-width:860px}

.principles-band{padding-block:clamp(48px,6vw,80px)}
.principles-band > .label{margin-bottom:clamp(24px,3vw,36px)}
.principles{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:clamp(28px,4vw,56px)}
.principles .subhead{margin-bottom:10px}
.principles p{max-width:42ch}

/* ---- product card ---- */
.card{border-radius:16px; box-shadow:inset 0 0 0 1px var(--line); padding:clamp(22px,3vw,32px)}
.card-top{display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px}
.product-id{display:flex; align-items:center; gap:10px; margin-right:auto}
.product-id .wordmark{font-size:30px}
.product-id a{text-decoration:none}
.card-actions{display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px}
.card .store-badge img{height:40px}
.card-desc{font-size:17px; line-height:1.6; margin-top:20px; max-width:58ch; text-wrap:pretty}
.card .link-arrow{margin-top:14px}
.facts{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px 24px;
  margin-top:24px; padding-top:20px; border-top:1px solid var(--line);
}
.facts dd{margin-top:6px; font-size:15.5px; line-height:1.5}
.after-card{margin-top:clamp(24px,3vw,32px)}

/* ---- screenshots: follow the theme; the round button flips them; a click enlarges ---- */
.shots{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px}
.card .shots{margin-top:28px}
.shot-frame{position:relative; aspect-ratio:16/10; background:var(--soft); border-radius:12px; overflow:hidden}
.shot-frame::after{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 1px var(--line);
}
.shot-zoom{
  position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:inherit;
  background:none; cursor:zoom-in;
}
.shot-zoom:focus-visible{outline-offset:-3px}
.shot-zoom img{width:100%; height:100%; object-fit:cover}
.shot-mode{
  position:absolute; right:10px; bottom:10px; z-index:2;
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  padding:0; border:0; border-radius:999px; background:var(--paper); color:var(--ink);
  box-shadow:0 0 0 1px var(--line), 0 4px 12px -4px rgba(0,0,0,.25);
  cursor:pointer; transition:transform .15s ease;
}
.shot-mode:hover{transform:scale(1.06)}
.shots:not([data-shots]) .shot-mode,
.shots[data-shots="light"] .shot-mode .sun,
.shots[data-shots="dark"] .shot-mode .moon{display:none}
figcaption{font-size:13.5px; line-height:1.5; color:var(--muted); margin-top:10px}

.lightbox{
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none;
  margin:0; border:0; padding:clamp(16px,4vw,48px); overflow:hidden;
  background:rgba(15,17,20,.86); color:#ECEEF1; cursor:zoom-out;
}
.lightbox[open]{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px}
.lightbox::backdrop{background:transparent}
.lightbox img{
  max-width:min(1400px,100%); max-height:calc(100vh - 140px); width:auto; height:auto;
  border-radius:12px; box-shadow:0 24px 64px -24px rgba(0,0,0,.6); cursor:default;
}
.lightbox p{font-size:14px; line-height:1.5; text-align:center}
.lightbox-close{
  position:absolute; top:16px; right:16px; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border:0; border-radius:999px; background:rgba(255,255,255,.12); color:#FFFFFF;
  cursor:pointer; transition:background-color .15s ease;
}
.lightbox-close:hover{background:rgba(255,255,255,.22)}
.lightbox :focus-visible{outline-color:#FFFFFF}

/* ---- contact ---- */
.contact{display:grid; gap:28px}
.contact .label{margin-bottom:10px}
.email{
  display:inline-block; font-weight:600; font-size:clamp(28px,3.4vw,40px); line-height:1.15;
  letter-spacing:-.025em; color:var(--ink); overflow-wrap:anywhere;
  text-decoration-line:underline; text-decoration-thickness:2px; text-decoration-color:var(--line);
  text-underline-offset:.18em; transition:text-decoration-color .15s ease;
}
.email:hover{text-decoration-color:var(--ink)}
.contact p:not(.label){font-size:17px; line-height:1.6}

/* ---- footer ---- */
.site-footer{border-top:1px solid var(--line)}
.site-footer .wrap{padding-block:28px 40px; display:flex; flex-wrap:wrap; align-items:center; gap:16px 40px}
.site-footer p{font-size:13.5px; line-height:1.6; color:var(--muted)}
.site-footer .note{flex:1 1 320px; max-width:64ch; text-wrap:pretty}
/* Apple asks for this credit wherever its badge appears; on a line of its own. */
.site-footer .credit{flex-basis:100%; text-wrap:pretty}
.theme-switch{display:inline-flex; gap:2px; padding:3px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--line)}
.theme-switch[hidden]{display:none}
.theme-switch button{
  font:inherit; font-size:13px; font-weight:500; line-height:1; padding:9px 14px;
  border:0; border-radius:999px; background:transparent; color:var(--muted);
  cursor:pointer; transition:color .15s ease;
}
.theme-switch button:hover{color:var(--ink)}
.theme-switch button[aria-pressed="true"]{background:var(--ink); color:var(--paper)}

/* ---- product page (akcha/) ---- */
.product-page .section-head{flex-basis:220px}
.product-page .intro{max-width:58ch}
.product-hero{padding-block:clamp(40px,6vw,72px) clamp(56px,7vw,96px)}
.back{display:inline-flex; align-items:center; gap:8px; text-decoration:none; transition:color .15s ease}
.product-mark{display:flex; align-items:center; gap:14px; margin-top:clamp(32px,5vw,56px)}
.product-mark .wordmark{font-size:clamp(36px,4.6vw,48px)}
.product-hero .display{max-width:12em; margin-top:clamp(24px,3vw,32px)}
.product-hero .lede{max-width:54ch}
.product-hero .actions{gap:12px 20px}
.product-hero .actions p{font-size:14.5px; line-height:1.5; color:var(--muted)}
.product-hero .shots{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); margin-top:clamp(48px,6vw,72px)}
.product-hero .shot-frame{border-radius:16px}

.features{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:0 clamp(24px,4vw,48px)}
.features > div{border-top:1px solid var(--line); padding:20px 0 28px}
.features .subhead{margin-bottom:8px}

.lists{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:24px clamp(24px,4vw,48px)}
.lists .label{margin-bottom:6px}
.ticks{list-style:none; padding:0; border-bottom:1px solid var(--line)}
.ticks li{
  display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px;
  padding:12px 0; border-top:1px solid var(--line); font-size:15.5px; line-height:1.55;
}
.ticks svg{margin-top:2px}
.ticks .no svg{color:var(--muted)}

.price-card{
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:24px clamp(24px,4vw,48px);
  padding:clamp(22px,3vw,32px); border-radius:16px; box-shadow:inset 0 0 0 1px var(--line);
}
.price-card > div{flex:1 1 220px; min-width:0}
.price-card .ticks{flex:1 1 280px; min-width:0}
.price-card .label{margin-bottom:10px}
.price{display:flex; flex-wrap:wrap; align-items:baseline; gap:8px}
.price strong{
  font-weight:600; font-size:clamp(36px,4.4vw,48px); line-height:1; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}
.price span{font-size:15px; color:var(--muted)}
.price-note{font-size:14px; line-height:1.55; color:var(--muted); margin-top:12px}
.price-note + .price-note{margin-top:6px}

.qa{border-bottom:1px solid var(--line)}
.qa > div{border-top:1px solid var(--line); padding:20px 0}
.qa .subhead{margin-bottom:8px}
.qa p{max-width:60ch}
.qa + .aside{margin-top:20px}

.details{border-bottom:1px solid var(--line)}
.details div{
  display:grid; grid-template-columns:minmax(120px,180px) minmax(0,1fr); gap:16px;
  padding:16px 0; border-top:1px solid var(--line);
}
.details dt{padding-top:3px}
.details dd{font-size:16px; line-height:1.5}
.details .links{display:flex; flex-wrap:wrap; gap:6px 20px}
