/* Sudoku Solver AI — marketing & legal site.
   Same structure as the Cube Solver AI site (2Fresh Studio template), with the
   app's palette: warm gray canvas #E8E7E3, ink #101114, Inter Tight, soft
   shadows, blue→violet accent #4F6EF7 → #8A55EE, dark rounded buttons. */

:root {
  --bg: #e8e7e3;
  --bg2: #e8e7e3;
  --surface: #ffffff;
  --ink: #101114;
  --ink2: #4d4e55;
  --muted: #7c7d84;
  --line: rgba(16, 17, 20, 0.08);
  --accent1: #4f6ef7;
  --accent2: #8a55ee;
  --accent: linear-gradient(135deg, #4f6ef7 0%, #8a55ee 100%);
  --sm: 0 2px 8px rgba(0, 0, 0, 0.03), 0 8px 30px rgba(0, 0, 0, 0.05);
  --md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(0, 0, 0, 0.08);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08 }

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 13px 22px; backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(232, 231, 227, 0.78); border-bottom: 1px solid var(--line) }
.nav .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem }
.nav .brand img { width: 34px; height: 34px; border-radius: 10px }
.nav .links { display: flex; gap: 24px; font-size: 0.95rem; font-weight: 600 }
.nav .links a { color: var(--ink2); transition: 0.2s }
.nav .links a:hover { color: var(--ink) }
@media (max-width: 680px) { .nav .links { display: none } }

/* ---- store badges ---- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center }
.badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink);
  border-radius: 15px; padding: 10px 20px 10px 16px; box-shadow: var(--md); transition: transform 0.14s }
.badge:hover { transform: translateY(-3px) }
.badge svg { flex: 0 0 auto }
.badge .bt { display: flex; flex-direction: column; line-height: 1.05; color: #fff }
.badge .bt small { font-size: 0.62rem; letter-spacing: 0.4px; text-transform: uppercase; color: #cfd0d6 }
.badge .bt b { font-size: 1.16rem; font-weight: 700 }
.soon { font-size: 0.82rem; color: var(--muted); font-weight: 600 }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(1100px 540px at 78% -8%, #dcdcf6 0%, rgba(220, 220, 246, 0) 60%),
    linear-gradient(180deg, #f1f0ed 0%, var(--bg2) 100%) }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
  width: 100%; padding: 132px 0 92px }
.brand-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--md); flex: 0 0 auto }
.wordmark { display: flex; flex-direction: column; line-height: 0.95 }
.wordmark span { font-weight: 800; font-size: 2rem; letter-spacing: -0.04em }
.wordmark .w-ai { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 4px 0 14px }
.hero h1 .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero p.sub { font-size: 1.12rem; color: var(--ink2); margin-bottom: 24px; max-width: 500px; font-weight: 500 }
.hero .stores { margin-bottom: 20px }
.hero .pills { display: flex; gap: 9px; flex-wrap: wrap }
.pill { background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.84rem;
  padding: 7px 14px; border-radius: 30px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--sm) }

/* ---- phone mockup (app screen recreation) ---- */
.phone { justify-self: center; width: min(300px, 84%); aspect-ratio: 9 / 19.2; border-radius: 44px;
  background: #0c0d11; padding: 11px; box-shadow: var(--md); position: relative }
.hero .phone { transform: rotate(2deg) }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f7 100%); display: flex; flex-direction: column }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 18px;
  background: #0c0d11; border-radius: 12px; z-index: 4 }
.phone .screen .shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block }
.scr-head { padding: 34px 22px 6px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em }
.scr-sub { padding: 0 22px; color: var(--muted); font-size: 0.8rem; font-weight: 600 }
.scr-cube { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 26px }
.scr-cube img { width: 86%; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.16)) }
.scr-dock { margin: 0 14px 14px; display: flex; gap: 8px }
.scr-dock .b { flex: 1; height: 40px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem; font-weight: 700; background: rgba(16, 17, 20, 0.06); color: var(--ink2) }
.scr-dock .b.main { flex: 1.5; background: var(--ink); color: #fff }
.scr-chip { margin: 4px 22px 0; display: inline-flex; align-self: flex-start; gap: 6px; font-size: 0.72rem;
  font-weight: 700; color: #5b5be0; background: #ececff; padding: 4px 10px; border-radius: 20px }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 116px 0 72px }
  .hero p.sub { margin-left: auto; margin-right: auto }
  .hero .stores, .hero .pills, .brand-hero { justify-content: center }
  .hero .phone { display: none }
}

/* ---- sections ---- */
section { padding: 84px 0 }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px }
.sec-head .kick { display: inline-block; color: #fff; background: var(--accent); font-weight: 700;
  letter-spacing: 0.6px; font-size: 0.74rem; text-transform: uppercase; padding: 6px 15px; border-radius: 30px }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 16px 0 12px }
.sec-head p { color: var(--ink2) }

.features { background: var(--surface) }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: var(--sm); transition: transform 0.15s, box-shadow 0.15s }
.card:hover { transform: translateY(-4px); box-shadow: var(--md) }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.55rem; margin-bottom: 16px; color: #fff }
.card:nth-child(1) .ico { background: linear-gradient(135deg, #4f6ef7, #8a55ee) }
.card:nth-child(2) .ico { background: linear-gradient(135deg, #a35cff, #7b3fe4) }
.card:nth-child(3) .ico { background: linear-gradient(135deg, #34c77b, #1f9e63) }
.card:nth-child(4) .ico { background: linear-gradient(135deg, #ff9f43, #f67e1b) }
.card:nth-child(5) .ico { background: linear-gradient(135deg, #ff5e8a, #ff3d71) }
.card:nth-child(6) .ico { background: linear-gradient(135deg, #2bc4d4, #1d9fb0) }
.card h3 { font-size: 1.16rem; margin-bottom: 6px; font-weight: 700 }
.card p { color: var(--ink2); font-size: 0.95rem }

.shots { background: var(--bg) }
.shot-row { display: flex; gap: 22px; overflow-x: auto; padding: 8px 2px 22px; scroll-snap-type: x mandatory }
.shot-row .phone { flex: 0 0 auto; width: 232px; scroll-snap-align: center; transform: none }
.shot-row .phone:nth-child(odd) { transform: rotate(-1.4deg) }
.shot-row .phone:nth-child(even) { transform: rotate(1.4deg) }
.shot-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 8px }

.cta-band { background: var(--accent); text-align: center; color: #fff }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px }
.cta-band p { opacity: 0.95; margin-bottom: 24px; font-weight: 500 }
.cta-band .badge { background: #0c0d11 }
.cta-band .stores { justify-content: center }
.cta-band .soon { color: rgba(255, 255, 255, 0.85) }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-radius: 16px;
  padding: 14px 26px; font-size: 1.02rem; cursor: pointer; border: none; transition: transform 0.12s }
.btn:hover { transform: translateY(-2px) }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--md) }

/* ---- legal / content pages ---- */
.page { max-width: 800px; margin: 0 auto; padding: 130px 22px 72px }
.page h1 { font-size: 2.3rem; margin-bottom: 6px }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px }
.page h2 { font-size: 1.25rem; margin: 32px 0 10px; font-weight: 700 }
.page p, .page li { color: var(--ink2); margin-bottom: 12px }
.page strong { color: var(--ink) }
.page ul { padding-left: 22px; margin-bottom: 12px }
.page a.link { font-weight: 600; background: var(--accent); -webkit-background-clip: text; background-clip: text;
  color: transparent; border-bottom: 1.5px solid rgba(110, 96, 242, 0.35) }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-weight: 600 }
.back:hover { color: var(--ink) }

/* ---- footer ---- */
footer { background: var(--ink); color: #fff; padding: 44px 0 32px }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px }
.foot .brand { display: flex; align-items: center; gap: 11px; font-weight: 800 }
.foot .brand img { width: 32px; height: 32px; border-radius: 9px }
.foot .flinks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; font-weight: 600 }
.foot .flinks a { color: #b9bac2 }
.foot .flinks a:hover { color: #fff }
.copy { color: #71727c; font-size: 0.82rem; text-align: center; margin-top: 24px }


/* ---- store screenshots (already framed, so no phone mockup around them) ---- */
.shot-card { justify-self: center; width: min(320px, 84%); border-radius: 30px; overflow: hidden;
  box-shadow: var(--md); background: var(--surface) }
.shot-card img { width: 100%; height: auto; display: block }
.hero .shot-card { transform: rotate(2deg) }
.shot-row .shot-card { flex: 0 0 auto; width: 240px; scroll-snap-align: center }
.shot-row .shot-card:nth-child(odd) { transform: rotate(-1.4deg) }
.shot-row .shot-card:nth-child(even) { transform: rotate(1.4deg) }
@media (max-width: 820px) { .hero .shot-card { display: none } }
