/* Inter (SIL Open Font License 1.1, see fonts/OFL.txt), self-hosted variable font covering weights 400-700. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --blue: #1a8cff;
  --blue-deep: #0a6fe0;
  --white: #ffffff;
  --bg: #ffffff;
  --text: #0d1420;
  --body-text: #3b4658;
  --muted: #66748a;
  --soft: #f0f5fb;
  --line: #e2e8f0;
  --line-hover: #c5d0de;
  --chip: #ffffff;
  --chip-hover: #e3ecf7;
  --link: #0a6fe0;
  --live-bg: #dcfce7;
  --live-fg: #15803d;
  --dev-bg: #fff4e0;
  --dev-fg: #b45309;
  --dark-card: #0d1420;
  --btn-bg: #0d1420;
  --btn-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e15;
    --text: #eef2f8;
    --body-text: #c3ccda;
    --muted: #8f9bb0;
    --soft: #141a25;
    --line: #253042;
    --line-hover: #3a465c;
    --chip: #222b3a;
    --chip-hover: #2c3749;
    --link: #5aa9ff;
    --live-bg: #10331d;
    --live-fg: #4ade80;
    --dev-bg: #382a12;
    --dev-fg: #fbbf24;
    --dark-card: #182030;
    --btn-bg: #ffffff;
    --btn-fg: #0d1420;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 18px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Blue top */
.top {
  width: min(1096px, calc(100% - 64px)); margin: 20px auto 0; padding: 4px 0;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white);
  border-radius: 32px; position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(10, 111, 224, .6);
}
.top .wrap { padding: 0 28px; }
.top::after {
  content: ""; position: absolute; right: -140px; bottom: -340px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.3), rgba(255,255,255,0) 60%);
  border: 1px solid rgba(255,255,255,.22);
}
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 84px; position: relative; z-index: 1; }
.word { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
nav a:not(.pill) { opacity: .85; transition: opacity .2s; }
nav a:not(.pill):hover { opacity: 1; }
.pill { padding: 10px 20px; border-radius: 999px; background: var(--white); color: var(--blue-deep); font-size: 15px; font-weight: 600; transition: transform .2s; }
.pill:hover { transform: translateY(-1px); }

.top .intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 48px; position: relative; z-index: 1; }
.label { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 12px; }
.intro p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }

/* Sections */
section.block { padding-top: 112px; }
section.block:first-child { padding-top: 72px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
h1, h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.1; font-weight: 700; }
.head p { color: var(--muted); max-width: 36ch; }

/* Stores */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.store { background: var(--soft); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 40px; transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); }
.store.planned { background: transparent; border: 1.5px dashed var(--line); }
.store.planned:hover { border-color: var(--line-hover); }
.store-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { width: 32px; height: 32px; flex: none; fill: currentColor; }
.store h3 { font-size: 20px; letter-spacing: -.02em; }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.status.live { background: var(--live-bg); color: var(--live-fg); }
.status.soon { background: var(--soft); color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { background: var(--soft); border-radius: 36px; padding: 32px; display: flex; flex-direction: column; }
.icon { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 28px; box-shadow: 0 12px 24px -10px rgba(10, 111, 224, .5); display: grid; place-items: center; object-fit: cover; }
@media (prefers-color-scheme: dark) {
  /* A faint ring keeps dark app icons from melting into dark cards. */
  .icon, .app-icon { outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }
}
.dev { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--dev-bg); color: var(--dev-fg); }
.project h3 { font-size: 22px; letter-spacing: -.02em; }
.project p { color: var(--muted); margin-top: 8px; font-size: 16px; flex: 1; }
.links { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.links a { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--chip); transition: background .2s; }
.links a:hover { background: var(--chip-hover); }

/* App page */
.app-hero { display: flex; align-items: center; gap: 40px; }
.app-icon { width: 112px; height: 112px; border-radius: 26px; flex: none; box-shadow: 0 20px 40px -16px rgba(13, 20, 32, .45); }
.app-hero .sub { color: var(--muted); font-size: 20px; margin-top: 8px; max-width: 34ch; }
.app-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-size: 16px; font-weight: 600; transition: transform .2s; }
.store-btn:hover { transform: translateY(-1px); }
.store-btn svg { width: 20px; height: 20px; fill: currentColor; }
.meta { color: var(--muted); font-size: 15px; }

.shots { display: flex; gap: 16px; overflow-x: auto; margin-top: 64px; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots img { height: 480px; width: auto; aspect-ratio: 720 / 1564; border-radius: 28px; background: var(--soft); flex: none; scroll-snap-align: start; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--soft); border-radius: 28px; padding: 28px; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 15px; margin-bottom: 24px; }
.step h3 { font-size: 20px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 16px; margin-top: 6px; }

.stars { color: #ffb400; letter-spacing: .08em; }
.more { color: var(--link); font-weight: 500; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--soft); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.review h3 { font-size: 18px; letter-spacing: -.01em; }
.review p { color: var(--body-text); font-size: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review .who { color: var(--muted); font-size: 14px; margin-top: 6px; }

.app-legal { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; }
.app-legal a { color: var(--muted); }
.app-legal a:hover { color: var(--link); }

/* Contact */
.contact { background: var(--dark-card); color: var(--white); border-radius: 40px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.contact p { color: rgba(255,255,255,.6); margin-top: 12px; }
.mail { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; justify-self: end; white-space: nowrap; }
.mail:hover { color: #6cc0ff; }

/* Footer */
footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.req dt { color: var(--text); font-weight: 600; }
.legal-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.legal-links a { color: var(--text); font-weight: 500; }
.legal-links a:hover { color: var(--link); }

/* 404 */
.not-found { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.not-found .sub { color: var(--muted); font-size: 20px; max-width: 40ch; margin: 12px auto 32px; }

/* Home screen in edit mode: two jiggling "4" apps and an empty slot where the "0" was. */
.nf-screen {
  margin-bottom: 48px; padding: 56px clamp(24px, 6vw, 72px) 28px; border-radius: 48px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--blue) 16%, var(--soft)), var(--soft));
}
.nf-apps { display: flex; gap: clamp(20px, 5vw, 48px); }
.nf-app { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nf-tile {
  position: relative; width: clamp(80px, 15vw, 144px); aspect-ratio: 1; border-radius: 23%;
  display: grid; place-items: center; color: var(--white);
  font-size: clamp(48px, 9vw, 88px); font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  box-shadow: 0 18px 36px -18px rgba(10, 111, 224, .7);
  animation: nf-jiggle .26s ease-in-out infinite alternate;
}
.nf-app:nth-child(3) .nf-tile { animation-duration: .3s; animation-delay: -.15s; }
.nf-badge { position: absolute; top: -9px; left: -9px; width: 28px; height: 28px; border-radius: 50%; background: #8e8e93; border: 3px solid var(--soft); }
.nf-badge::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2.5px; border-radius: 2px; background: var(--white); translate: -50% -50%; }
.nf-tile.nf-gone {
  background: none; box-shadow: none; color: var(--line-hover);
  border: 2.5px dashed var(--line-hover); animation: nf-fade 2.4s ease-in-out infinite;
}
.nf-name { font-size: 14px; font-weight: 500; color: var(--muted); }
.nf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.nf-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-hover); }
.nf-dots i:first-child { background: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.nf-link { padding: 14px 22px; border-radius: 999px; background: var(--soft); font-size: 16px; font-weight: 600; transition: background .2s; }
.nf-link:hover { background: var(--chip-hover); }
@keyframes nf-jiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes nf-fade { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .nf-tile { animation: none; } }

/* Legal pages */
.doc { max-width: 760px; padding-top: 72px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 12px 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--body-text); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin-top: 8px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--link); }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  nav a:not(.pill) { display: none; }
  .top { width: calc(100% - 24px); margin-top: 12px; border-radius: 24px; }
  .top .wrap { padding: 0 20px; }
  .top .intro { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  section.block { padding-top: 72px; }
  section.block:first-child, .doc { padding-top: 48px; }
  .not-found { padding-top: 40px; }
  .nf-screen { padding: 40px 20px 22px; border-radius: 32px; margin-bottom: 36px; }
  .head { flex-direction: column; gap: 8px; }
  .stores { grid-template-columns: 1fr 1fr; }
  .store { gap: 28px; padding: 22px; border-radius: 24px; }
  .projects { grid-template-columns: 1fr; }
  .project { border-radius: 28px; padding: 28px 24px; }
  .app-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .shots { margin: 40px -16px 0; padding: 0 16px 12px; scroll-padding: 0 16px; }
  .shots img { height: 400px; border-radius: 22px; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 28px; }
  .mail { justify-self: start; white-space: normal; overflow-wrap: anywhere; }
  footer { margin-top: 72px; }
  footer .wrap { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 10px; }
  .legal-links { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; text-align: left; white-space: nowrap; }
}
