/* AWKey — awkey.mindjek.co
 *
 * One look, taken from the App Store screenshots rather than invented beside
 * them: warm charcoal, vermilion, a serif for the headlines. The site and the
 * store listing are the same brand and should read as one thing.
 *
 * Deliberately single-theme. The pictures on this page are dark, atmospheric
 * renders, and a light ground would put every one of them in a black box.
 */

:root {
  --ground: #13110F;
  --ground-2: #1C1916;
  --ink: #F3EEE8;
  --ink-soft: #A79F95;
  --accent: #C4442B;
  --accent-ink: #FFFFFF;
  --rule: rgba(243, 238, 232, 0.12);
  --glow: radial-gradient(60% 50% at 50% 60%, rgba(196, 68, 43, 0.22), transparent 70%);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);

  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Transforms count towards scrollable overflow, so an element easing in from
   * the right would otherwise let the page scroll sideways until it lands. */
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(46px, 7.6vw, 96px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(20px, 2.1vw, 25px); font-variation-settings: "opsz" 48, "SOFT" 30; }
h1 em, h2 em { font-style: normal; color: var(--accent); }

p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 54ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.body { color: var(--ink-soft); max-width: 58ch; }
.body strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.mono { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.86em; }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 17, 15, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.bar { max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-family: Fraunces, serif; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { color: var(--accent); font-weight: inherit; }
.bar nav { margin-left: auto; display: flex; gap: 24px; }
.bar nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.bar nav a:hover { color: var(--ink); }
.bar .cta { margin-left: auto; padding: 9px 18px; font-size: 14px; }
.bar nav + .cta { margin-left: 0; }
@media (max-width: 860px) { .bar nav { display: none; } }

/* ---------- Buttons ---------- */

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 14px 26px;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.cta:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Sections ---------- */

section { padding: clamp(72px, 9vw, 124px) 0; }
section + section { border-top: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split.flip > .phone { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > .phone { order: 0; } }

.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* A phone render from the store listing. The image carries its own glow and
 * ground, so the frame around it is only a hairline and a shadow. */
/* No frame. The render's own ground is a shade darker than the page, so a box
 * around it reads as a picture pasted on; the edges are faded into the page
 * instead and the phone sits *in* it. */
.phone { position: relative; }
.phone img {
  position: relative;
  -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 74% at 50% 50%, #000 40%, transparent 100%);
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 6vw, 84px); border-top: 0; overflow: hidden; }
.hero .split { align-items: end; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.note { font-size: 14px; color: var(--ink-soft); }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.stats div { background: var(--ground); padding: 24px 22px; }
.stats b { display: block; font-family: Fraunces, serif; font-variation-settings: "opsz" 144; font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
/* Five stats over two columns leaves a blank sixth cell; the last one spans. */
@media (max-width: 520px) { .stats div:last-child { grid-column: 1 / -1; } }
.stats span { font-family: "Martian Mono", monospace; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }

/* A flat keyboard capture, shown as a board rather than a phone. */
.board-shot { margin: 0; max-width: 760px; }
.board-shot img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.board-shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Showcase strip ---------- */

.strip-wrap { margin-top: 36px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--pad) 24px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); scrollbar-width: thin; }
.strip { display: flex; gap: 18px; width: max-content; }
.strip figure { margin: 0; scroll-snap-align: start; width: clamp(220px, 24vw, 300px); }
.strip img { border-radius: 16px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.strip figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 34px; }
.card { border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; background: var(--ground-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Pricing ---------- */

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 780px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--rule); border-radius: var(--r); padding: 30px; background: var(--ground-2); }
.tier.paid { border-color: var(--accent); }
.tier h3 { margin-bottom: 4px; }
.tier .price { font-family: Fraunces, serif; font-variation-settings: "opsz" 144; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 18px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.tier li strong { color: var(--ink); font-weight: 600; }
.tier li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; gap: 14px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 12px; color: var(--ink-soft); max-width: 68ch; }
.faq p strong { color: var(--ink); font-weight: 600; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 52px 0 14px; }
.prose h3 { margin: 32px 0 10px; font-size: 19px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); }
.updated { font-family: "Martian Mono", monospace; font-size: 12px; color: var(--ink-soft); }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--rule); padding: 48px 0 60px; }
.foot { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot small { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Motion ---------- */

/* Only hidden once `main.js` has claimed the reveal by setting `.anim` on the
 * root. A blocked CDN, a JS error or a text-only client shows the page in full;
 * content is never invisible by default. */
.anim .rise { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  .anim .rise { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
