:root{
  /* Palette sampled from app screenshots */
  --bg: #ede7d9;
  --surface: #f7f5f1;
  --surface2: #f0ede8;
  --ink: #403319;
  --muted: #72695a;
  --muted2: #8c8072;
  --accent: #99734a;
  --accent2: #b8860b;
  --ring: rgba(153, 115, 74, .35);

  --shadow-sm: 0 2px 10px rgba(64, 51, 25, .12);
  --shadow-md: 0 14px 40px rgba(64, 51, 25, .18);
  --radius-lg: 20px;
  --radius-md: 14px;

  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(153,115,74,.10), transparent 55%),
              radial-gradient(900px 600px at 80% 10%, rgba(184,134,11,.08), transparent 55%),
              linear-gradient(180deg, #f3efe6 0%, var(--bg) 40%, #e7dfcd 100%);
  overflow-x:hidden;
}

/* Paper grain */
body::before{
  content:"";
  position:fixed;
  inset:-120px;
  pointer-events:none;
  opacity:.07;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px);
  mix-blend-mode:multiply;
  filter: blur(.35px);
  transform: translateZ(0);
}

/* Global drifting fog removed (use hero vignette instead). */

/* Layout */
.page{
  position:relative;
  z-index:1;
}
.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(16px);
  background: rgba(247,245,241,.72);
  border-bottom: 1px solid rgba(153,115,74,.18);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  text-decoration:none;
}
.brand-logo{
  width:36px;
  height:36px;
  border-radius:10px;
  box-shadow: var(--shadow-sm);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title strong{ font-size:14px; letter-spacing:.2px; }
.brand-title span{ font-size:12px; color:var(--muted2); }
.nav{
  display:flex;
  gap:14px;
  align-items:center;
}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}
.nav a:hover{ color:var(--ink); }

.hero{
  padding:64px 0 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.hero-copy{
  position: relative;
  padding-top: 240px;
}
.hero-art{
  position:absolute;
  top: -168px;
  left: -74px;
  right: -24px;
  height: 380px;
  z-index: 0;
  border-radius: 16px;
  overflow:hidden;
  /* Blend into the page: remove any “card” look */
  box-shadow: none;
  border: none;
  background: transparent;
}
/* Vignette only (no fog): soften edges without blurring the photo */
.hero-copy > :not(.hero-art){
  position: relative;
  z-index: 1;
}
.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    /* Feathered edge mask (soften “rectangle border”) */
    radial-gradient(closest-side at 50% 50%, rgba(237,231,217,0) 56%, rgba(237,231,217,1) 100%),
    radial-gradient(300px 260px at 0% 0%, rgba(247,245,241,.62), transparent 74%),
    radial-gradient(300px 260px at 100% 0%, rgba(247,245,241,.62), transparent 74%),
    radial-gradient(300px 260px at 0% 100%, rgba(247,245,241,.62), transparent 74%),
    radial-gradient(300px 260px at 100% 100%, rgba(247,245,241,.62), transparent 74%),
    linear-gradient(180deg, rgba(237,231,217,.00) 0%, rgba(237,231,217,.72) 78%, rgba(237,231,217,1) 100%);
  opacity: .75;
  filter: blur(18px);
  transform: scale(1.10);
  pointer-events:none;
  z-index: 2;
}
.hero-art img{
  position: relative;
  z-index: 1;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 12% 56%;
  transform: translateZ(0);
  filter: saturate(1.03) contrast(1.03);
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(247,245,241,.85);
  border: 1px solid rgba(153,115,74,.20);
  box-shadow: var(--shadow-sm);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}
.kicker .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(153,115,74,.13);
}
.hero h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing:-.8px;
}
.hero p{
  margin:0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height:1.55;
  color: var(--muted);
  max-width: 56ch;
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.1px;
  border:1px solid rgba(153,115,74,.25);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary{
  color: #fff;
  background: linear-gradient(180deg, #a47a4e 0%, #8c653f 100%);
  border-color: rgba(64,51,25,.22);
}
.btn-secondary{
  color: var(--ink);
  background: rgba(247,245,241,.9);
}
.btn small{
  font-weight:800;
  opacity:.9;
}

.hero-card{
  border-radius: var(--radius-lg);
  background: rgba(247,245,241,.78);
  border: 1px solid rgba(153,115,74,.20);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  position:relative;
}
.hero-card-inner{
  padding:16px 16px 18px;
}

/* iPhone screenshot mock (no external images) */
.phone-mock{
  margin: 0;
  display:grid;
  gap:10px;
}
.phone{
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  --frame-radius: 46px;
  --bezel: 14px;
  --inner-inset: 7px;
  border-radius: var(--frame-radius);
  padding: var(--bezel);
  background:
    radial-gradient(280px 300px at 50% 18%, rgba(255,255,255,.26), transparent 62%),
    radial-gradient(320px 340px at 50% 88%, rgba(0,0,0,.24), transparent 66%),
    linear-gradient(180deg, #2b2b2b 0%, #0f0f0f 100%);
  box-shadow:
    0 40px 80px rgba(64,51,25,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone::before{
  content:"";
  position:absolute;
  inset: var(--inner-inset);
  border-radius: calc(var(--frame-radius) - 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events:none;
}
.phone-notch{
  position:absolute;
  left:50%;
  top: 11px;
  transform: translateX(-50%);
  width: 46%;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #070707, #141414);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  z-index: 3;
  pointer-events:none;
}
.phone-screen{
  position:relative;
  border-radius: calc(var(--frame-radius) - 12px);
  overflow:hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone-screen img{
  display:block;
  width:100%;
  height:auto;
}
.phone-caption{
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.4;
}

/* Hand-drawn SVG */
.ink-hero{
  width:100%;
  height:auto;
  display:block;
}
.ink-hero{
  background: radial-gradient(520px 260px at 35% 35%, rgba(153,115,74,.10), transparent 60%),
              radial-gradient(520px 260px at 70% 55%, rgba(184,134,11,.06), transparent 60%);
  border-radius: 16px;
}
.ink-stroke{
  stroke: rgba(64,51,25,.85);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash, 420);
  stroke-dashoffset: var(--dash, 420);
}
.ink-muted{ stroke: rgba(114,105,90,.7); stroke-width:2.5; }
.ink-accent{ stroke: rgba(153,115,74,.92); stroke-width:3.4; }
.ink-anim .ink-stroke{
  animation: drawIn 1.7s ease forwards;
}
.ink-anim .ink-stroke.d2{ animation-delay: .18s; }
.ink-anim .ink-stroke.d3{ animation-delay: .34s; }
.ink-anim .ink-stroke.d4{ animation-delay: .55s; }
.ink-anim .ink-stroke{
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
}
.ink-anim .ink-stroke.loop{
  animation: drawLoop 2.9s ease-in-out infinite;
  stroke-dasharray: 240;
}
@keyframes drawIn{
  to{ stroke-dashoffset: 0; }
}
@keyframes drawLoop{
  0%{ stroke-dashoffset: 240; opacity:.2; }
  30%{ opacity:1; }
  55%{ stroke-dashoffset: 0; opacity:1; }
  100%{ stroke-dashoffset: -240; opacity:.15; }
}

/* 3D Board vignette */
.board-wrap{
  margin-top: 12px;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.board-rotor{
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-18deg);
  will-change: transform;
  animation: boardRotate 28s linear infinite;
}
@keyframes boardRotate{
  0%{ transform: rotateX(58deg) rotateZ(-18deg) rotateY(0deg); }
  100%{ transform: rotateX(58deg) rotateZ(-18deg) rotateY(360deg); }
}
.board{
  width: min(420px, 100%);
  aspect-ratio: 1/1;
  border-radius: 18px;
  position:relative;
  transform-style: preserve-3d;
  background: linear-gradient(180deg, rgba(64,51,25,.22), rgba(64,51,25,.05));
  box-shadow: 0 40px 80px rgba(64,51,25,.35);
}
.board::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(164,122,78,.55), rgba(140,101,63,.25));
  transform: translateZ(-14px);
  filter: blur(.2px);
}
.squares{
  position:absolute;
  inset:10px;
  border-radius: 14px;
  overflow:hidden;
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  background: #c9b08d;
  box-shadow: inset 0 0 0 1px rgba(64,51,25,.18);
}
.sq{
  position:relative;
}
.sq.light{ background: #d8c3a3; }
.sq.dark{ background: #a37a52; }
.sq::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80px 60px at 20% 20%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(80px 60px at 80% 80%, rgba(0,0,0,.10), transparent 60%);
  opacity:.35;
  pointer-events:none;
}

.pieces-layer{
  position:absolute;
  inset:10px;
  transform: translateZ(10px);
  transform-style: preserve-3d;
  pointer-events:none;
}
.marks-layer{
  position:absolute;
  inset:10px;
  transform: translateZ(6px);
  transform-style: preserve-3d;
  pointer-events:none;
}
.mark{
  width: 12.5%;
  height: 12.5%;
  position:absolute;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 65%),
              radial-gradient(circle at 70% 70%, rgba(0,0,0,.12), transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(153,115,74,.40);
  opacity: .0;
  transition: opacity 420ms ease;
}
.mark.is-on{
  opacity: .85;
}
.mark.accent{
  box-shadow: inset 0 0 0 2px rgba(153,115,74,.55), 0 0 0 4px rgba(153,115,74,.14);
  background: radial-gradient(circle at 50% 50%, rgba(153,115,74,.22), transparent 62%);
}
.piece{
  width: 12.5%;
  height: 12.5%;
  position:absolute;
  display:grid;
  place-items:center;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1);
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.25));
}
.piece svg{ width: 70%; height: 70%; display:block; }
.piece.white svg{ filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)); }
.piece.black svg{ filter: drop-shadow(0 1px 0 rgba(255,255,255,.12)); }

.board-caption{
  margin-top:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  color: var(--muted);
  font-size: 12px;
}
.board-caption strong{ color: var(--ink); }

/* Sections */
.section{
  padding: 34px 0;
}
.section h2{
  margin:0 0 10px;
  font-size: 24px;
  letter-spacing:-.2px;
}
.section p.lead{
  margin:0 0 18px;
  color:var(--muted);
  max-width: 70ch;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background: rgba(247,245,241,.86);
  border: 1px solid rgba(153,115,74,.20);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card h3{
  margin:0 0 6px;
  font-size: 14px;
  letter-spacing:.1px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shots{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.shot{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(153,115,74,.18);
  box-shadow: var(--shadow-sm);
  background: rgba(247,245,241,.8);
}
.shot picture, .shot img{ display:block; width:100%; height:auto; }

.divider{
  height:1px;
  margin: 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(153,115,74,.28), transparent);
}

.footer{
  padding: 26px 0 42px;
  color: var(--muted2);
  font-size: 12px;
}
.footer a{ color: var(--muted); text-decoration:none; font-weight:700; }
.footer a:hover{ color: var(--ink); text-decoration:underline; }
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
}

/* Accessibility */
:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .board{ width: min(460px, 100%); }
  .hero-copy{ padding-top: 220px; }
  .hero-art{
    left: -10px;
    right: -10px;
    top: -132px;
    height: 320px;
  }
}
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
  .shots{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .hero-copy{ padding-top: 210px; }
  .hero-art{
    top: -148px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce){
  .board-rotor{ animation:none !important; }
  .ink-anim .ink-stroke,
  .ink-anim .ink-stroke.loop{ animation:none !important; stroke-dashoffset: 0 !important; }
  .piece{ transition:none !important; }
}

/* Legal/support shared blocks */
.page-hero{
  padding: 30px 0 16px;
}
.page-hero h1{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.3px;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
}
.notice{
  background: rgba(240,237,232,.92);
  border: 1px solid rgba(153,115,74,.22);
  border-left: 4px solid var(--accent);
  padding: 14px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-weight: 650;
}
.contact-box{
  background: linear-gradient(180deg, rgba(164,122,78,.20), rgba(140,101,63,.10));
  border: 1px solid rgba(153,115,74,.22);
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-box a{ color: var(--ink); font-weight: 800; }

.faq{
  display:grid;
  gap:10px;
}
.faq-item{
  background: rgba(247,245,241,.88);
  border: 1px solid rgba(153,115,74,.18);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.faq-item strong{
  display:block;
  margin-bottom: 6px;
  color: var(--ink);
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(153,115,74,.18);
  background: rgba(247,245,241,.9);
  box-shadow: var(--shadow-sm);
}
.data-table th,
.data-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(153,115,74,.12);
  text-align:left;
  vertical-align: top;
}
.data-table th{
  color: var(--ink);
  background: rgba(240,237,232,.92);
}
.data-table tr:last-child td{ border-bottom:none; }



