/* Tiny Serious — built on arc.net's page architecture:
   announcement bar → saturated colour-field hero → bezelled product visual →
   one centred statement → alternating feature bands → catalog index →
   oversized closing line → multi-column footer. */

:root {
  color-scheme: light;

  --blue: #3139fb;
  --blue-deep: #26069c;
  --blue-dark: #2404aa;
  --violet: #6631d7;
  --peri: #8cacff;
  --sky: #96c4ff;
  --lilac: #f0b4ff;
  --pink: #ff66a6;
  --rose: #ff89b3;
  --salmon: #ff8f7e;
  --amber: #ffb223;
  --red: #ff5060;

  --cream: #fffcea;
  --cream-deep: #fff6d8;
  --paper: #ffffff;
  --ink: #0e0f10;
  --ink-soft: #4d5157;
  --ink-faint: #8b8f96;
  --line: rgba(14, 15, 16, 0.10);
  --line-strong: rgba(14, 15, 16, 0.18);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;
  --r-pill: 9999px;

  --lift: 0 2px 3px rgba(14, 15, 16, 0.03), 0 12px 28px rgba(14, 15, 16, 0.07);
  --lift-hi: 0 6px 10px rgba(14, 15, 16, 0.05), 0 34px 70px rgba(14, 15, 16, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero a:focus-visible,
.closer a:focus-visible { outline-color: #fff; }

::selection { background: rgba(49, 57, 251, 0.18); }

.shell { width: min(1200px, calc(100% - 44px)); margin: 0 auto; }

h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Arc's field grain */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Buttons ────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease),
              color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.button-light {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}
.button-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22); }

.button-deep {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.button-deep:hover { background: var(--blue-deep); transform: translateY(-2px); }

.button-ghost {
  padding: 10px 20px;
  font-size: 0.92rem;
  background: rgba(14, 15, 16, 0.06);
  color: var(--ink);
}
.button-ghost:hover { background: var(--ink); color: var(--cream); }

/* ── 1. Announcement bar ────────────────────────────────── */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  text-align: center;
}

.announce img { width: 22px; height: 22px; border-radius: 6px; flex: none; }

.announce-pill {
  flex: none;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 0.25s var(--ease);
}

.announce:hover .announce-pill { background: rgba(255, 255, 255, 0.3); }

/* ── 2. Nav ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 234, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  flex: none;
}

.brand img { width: 34px; height: 34px; border-radius: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--ink); background: rgba(14, 15, 16, 0.06); }
.nav-cta { flex: none; }

/* ── 3. Hero: full-bleed colour field ───────────────────── */

.hero {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding: clamp(72px, 11vw, 148px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  padding-bottom: clamp(48px, 6vw, 78px);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  max-width: 15ch;
}

.hero-note {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.014em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* ── 4. Bezelled product visual ─────────────────────────── */

.bezel {
  position: relative;
  z-index: 2;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--salmon), var(--rose));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.26);
}

.bezel-inner {
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(26px, 3.4vw, 42px) clamp(18px, 3vw, 40px) clamp(30px, 3.6vw, 44px);
}

.bezel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  max-width: 860px;
  margin: 0 auto;
}

.shelf li { flex: 0 1 clamp(120px, 12vw, 168px); }

.shelf a {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  transition: background-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.shelf a:hover { background: rgba(14, 15, 16, 0.05); transform: translateY(-3px); }
.shelf img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 16, 0.10);
}

/* ── 5. The statement ───────────────────────────────────── */

.statement {
  padding: clamp(88px, 12vw, 168px) 0 clamp(72px, 10vw, 140px);
  text-align: center;
}

.statement h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  max-width: 20ch;
  margin: 0 auto;
}

.statement p {
  margin: 26px auto 0;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  letter-spacing: -0.016em;
}

/* ── 6. Feature bands ───────────────────────────────────── */

.feature { padding: clamp(18px, 2.4vw, 30px) 0; }

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 66px);
  align-items: center;
  padding: clamp(38px, 5vw, 74px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-flip .feature-copy { order: 2; }

.feature-copy { display: grid; gap: 18px; align-content: center; }

.feature-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  max-width: 16ch;
}

.feature-copy > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 44ch;
  letter-spacing: -0.014em;
}

/* Arc's inline-linked feature names */
.feature-copy a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(49, 57, 251, 0.28);
  transition: border-color 0.25s var(--ease);
}

.feature-copy a:hover { border-color: var(--blue); }

.feature-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-height: clamp(220px, 26vw, 320px);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-art img {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  border-radius: clamp(22px, 2.8vw, 34px);
  box-shadow: 0 22px 48px rgba(14, 15, 16, 0.28);
  transition: transform 0.5s var(--ease);
}

.feature-art img:nth-child(1) { transform: rotate(-5deg); }
.feature-art img:nth-child(2) { transform: rotate(5deg); }
.feature-inner:hover .feature-art img:nth-child(1) { transform: rotate(-8deg) translateY(-6px); }
.feature-inner:hover .feature-art img:nth-child(2) { transform: rotate(8deg) translateY(-6px); }

.art-productivity  { background: linear-gradient(150deg, var(--peri), var(--blue)); }
.art-games         { background: linear-gradient(150deg, var(--lilac), var(--violet)); }
.art-kids          { background: linear-gradient(150deg, var(--amber), var(--pink)); }
.art-entertainment { background: linear-gradient(150deg, var(--sky), var(--blue-deep)); }

/* "Soon" line inside a feature band */
.feature-soon {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-faint);
  max-width: 46ch;
}

.feature-soon strong { color: var(--ink-soft); font-weight: 700; }

.soon-tag {
  display: inline-block;
  margin-right: 9px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(49, 57, 251, 0.10);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 7. Catalog index ───────────────────────────────────── */

.index-section { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }

.index-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.index-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.index-group {
  margin: clamp(30px, 3.6vw, 46px) 0 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.app-index { border-top: 1px solid var(--line); }

.app-index li { border-bottom: 1px solid var(--line); }

.app-index a,
.app-index .idx-row {
  display: grid;
  grid-template-columns: 52px minmax(150px, 0.9fr) minmax(110px, 0.5fr) minmax(0, 1.6fr) 28px;
  align-items: center;
  gap: 22px;
  padding: 20px 12px;
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background-color 0.25s var(--ease), padding 0.25s var(--ease);
}

.app-index a:hover { background: var(--paper); padding-left: 20px; padding-right: 20px; }

.app-index img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 16, 0.10);
}

/* Unreleased, no site yet: a row, not a link */
.app-index .idx-row { cursor: default; }
.app-index li.is-soon img { opacity: 0.82; }
.app-index li.is-soon .idx-name { color: var(--ink-soft); }

.idx-placeholder {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--sky), var(--blue-deep));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.idx-name { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.032em; }

.idx-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.idx-desc { color: var(--ink-soft); font-size: 0.97rem; }

.idx-go {
  justify-self: end;
  font-size: 1.1rem;
  color: var(--blue);
  transition: transform 0.28s var(--ease);
}

.app-index a:hover .idx-go { transform: translate(3px, -3px); }

/* ── 8. Oversized closing line ──────────────────────────── */

.closer {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 148px) 0 clamp(84px, 10vw, 150px);
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.closer .shell { position: relative; z-index: 2; }

.closer-line {
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.closer-line span:nth-child(2),
.closer-line span:nth-child(6) { color: var(--rose); }

/* ── 9. Footer ──────────────────────────────────────────── */

.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 34px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.footer-brand-col { display: grid; gap: 14px; align-content: start; }
.footer-brand-col p { color: var(--ink-soft); font-size: 0.95rem; }

.footer-grid nav { display: grid; gap: 10px; align-content: start; }

.foot-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.footer-grid nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s var(--ease);
}

.footer-grid nav a:hover { color: var(--blue); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1000px) {
  .feature-inner { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .feature-art { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-index a,
  .app-index .idx-row {
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    grid-template-areas: "icon name go" "icon meta meta" "desc desc desc";
    gap: 6px 18px;
  }
  .app-index img,
  .idx-placeholder { grid-area: icon; }
  .idx-name { grid-area: name; }
  .idx-meta { grid-area: meta; }
  .idx-desc { grid-area: desc; margin-top: 8px; }
  .idx-go { grid-area: go; }
}

@media (max-width: 720px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf a:nth-child(n) { }
  .announce { font-size: 0.8rem; gap: 9px; }
  .announce-pill { display: none; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .hero { padding-top: 56px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf img { width: 60px; height: 60px; }
  .statement br { display: none; }
  .bezel { padding: 10px; border-radius: 26px; }
  .hero-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
