/* ==========================================================================
   Chess Calculator — synergytec.com.br/chesscalculator
   Cream board squares by day, the dark board below. Newsreader + system sans.
   ========================================================================== */

:root {
  --cream: #EFE7D5;
  --cream-2: #E5DCC6;
  --ink: #1A1814;
  --ink-2: #4A4538;
  --muted: #7B7461;
  --hair: rgba(26, 24, 20, .14);

  --dark: #1A1814;
  --dark-2: #24211B;
  --light: #EFE7D5;
  --haze: #A89F86;
  --hair-dark: rgba(239, 231, 213, .14);

  --green: #0F4C3A;
  --green-2: #166A51;
  --gold: #D4B36A;
  --tan: #B5A47A;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --s-1: 56px;
  --s-2: 88px;
  --s-3: 136px;
  --r-panel: clamp(18px, 2.2vw, 28px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--cream); }

h1, h2, .stat b, .quote {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 5.8vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; }

.wrap { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.lede { color: var(--muted); max-width: 34em; text-wrap: pretty; font-size: 18px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }

/* dark sections */
.dark { background: var(--dark); color: var(--light); }
.dark .lede { color: var(--haze); }
.dark .eyebrow { color: var(--gold); }

/* ---------- CTA + notify (same behaviour as the Corekept page) ---------- */
.cta { display: grid; gap: 14px; justify-items: center; }
.cta--left { justify-items: start; }
.cta__live { display: none; align-items: center; gap: 14px; }
.cta__live img { height: 44px; width: auto; }
.cta__soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .35);
}
.cta__soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15, 76, 58, .14); }
.dark .cta__soon { border-color: var(--hair-dark); color: var(--light); background: rgba(255, 255, 255, .06); }
.dark .cta__soon i { background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 179, 106, .18); }
[data-live="true"] .cta__soon { display: none; }
[data-live="true"] .cta__live { display: flex; }

.notify { display: grid; gap: 12px; justify-items: center; margin-top: 6px; width: 100%; max-width: 440px; }
.cta--left + .notify, .notify--left { justify-items: start; }
.notify fieldset { border: 0; padding: 0; margin: 0; }
.notify legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notify__phone { display: flex; gap: 6px; }
.notify__phone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notify__phone span {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--hair); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.notify__phone input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.notify__phone input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.notify__row { display: flex; width: 100%; gap: 8px; }
.notify__row input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255, 255, 255, .6); color: var(--ink);
  font: 500 15px/1 var(--sans);
}
.notify__row input::placeholder { color: var(--muted); }
.notify__row button {
  padding: 12px 20px; border-radius: 999px; border: 0;
  background: var(--green); color: var(--cream); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: transform .4s var(--ease-out), background .4s var(--ease-out);
}
.notify__row button:hover { background: var(--green-2); transform: translateY(-1px); }
.notify__row button:disabled { opacity: .6; cursor: default; transform: none; }
.notify__trap { position: absolute; left: -9999px; }
.notify__note { font-size: 13px; color: var(--muted); }
.notify__note a { color: inherit; }
.notify.is-sent .notify__phone, .notify.is-sent .notify__row { display: none; }
.notify.is-sent .notify__note { color: var(--green); font-weight: 500; }
.dark .notify__phone span { border-color: var(--hair-dark); color: var(--light); }
.dark .notify__phone input:checked + span { background: var(--light); color: var(--dark); border-color: var(--light); }
.dark .notify__row input { background: rgba(255, 255, 255, .06); border-color: var(--hair-dark); color: var(--light); }
.dark .notify__row input::placeholder { color: var(--haze); }
.dark .notify__row button { background: var(--gold); color: var(--dark); }
.dark .notify__row button:hover { background: #E2C57F; }
.dark .notify__note { color: var(--haze); }
.dark .notify.is-sent .notify__note { color: var(--gold); }

/* ---------- phone (same frame as the Corekept page) ---------- */
.phone {
  position: relative;
  aspect-ratio: 1080 / 2400;
  padding: 2.4%;
  border-radius: 13.5% / 6.1%;
  background: #0A0B0E;
  box-shadow:
    0 0 0 1.5px #A8A6A3,
    0 0 0 3px #57554F,
    0 30px 60px -18px rgba(26, 24, 20, .5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 11.5% / 5.2%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: var(--s-1) 0 var(--s-2);
  text-align: center;
  overflow-x: clip;
}
.hero__icon {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}
.eyebrow--name { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.005em; text-transform: none; color: var(--ink); }
.hero h1 { margin: 36px auto 0; max-width: 24ch; }
.hero .lede { margin: 26px auto 30px; max-width: 31em; }
.hero .cta { margin-inline: auto; }
.hero .notify { margin: 18px auto 0; }

.phones {
  --p: 0;
  --mid: clamp(236px, 30vw, 390px);
  position: relative;
  width: min(100%, 980px);
  height: calc(var(--mid) * 2400 / 1080);
  margin: 56px auto 0;
}
.phones .phone { position: absolute; top: 0; left: 50%; }
.phones .phone--mid { width: var(--mid); transform: translateX(-50%); z-index: 2; }
.phones .phone--side { width: clamp(196px, 25vw, 330px); top: clamp(30px, 4vw, 50px); }
.phones .phone--l { transform: translateX(calc(-112% - var(--p) * 22px)) rotate(calc(var(--p) * -2.5deg)); }
.phones .phone--r { transform: translateX(calc(12% + var(--p) * 22px)) rotate(calc(var(--p) * 2.5deg)); }

/* ---------- sections ---------- */
.section { padding: var(--s-2) 0; }
@media (width >= 900px) { .section { padding: var(--s-3) 0; } }
.section--tight { padding-top: var(--s-1); }
.head { display: grid; gap: 16px; margin-bottom: 48px; }
.head .lede { font-size: 19px; }

/* the three modes: underlined rows, like a programme list */
.modes { border-top: 1px solid var(--hair); }
.dark .modes { border-color: var(--hair-dark); }
.mode {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  padding: 24px 0; border-bottom: 1px solid var(--hair);
}
.dark .mode { border-color: var(--hair-dark); }
@media (width >= 720px) { .mode { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } }
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; line-height: 1.15; }
.mode p { color: var(--muted); max-width: 40em; }
.dark .mode p { color: var(--haze); }
.mode__tag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.dark .mode__tag { color: var(--gold); }

/* split panels with a painting */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
}
@media (width >= 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .split--flip > .split__art { order: -1; } }
.split__copy { display: grid; gap: 18px; justify-items: start; }
.split__art { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.split__art img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; gap: 18px; margin-top: 8px; }
.step { display: grid; gap: 4px; }
.step p { color: var(--muted); max-width: 36em; }
.dark .step p { color: var(--haze); }

/* feature cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
@media (width >= 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  display: grid; gap: 10px; align-content: start;
  padding: 26px 24px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid var(--hair);
}
.card .n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--green); }
.card p { color: var(--muted); font-size: 15.5px; }

/* drills: a small board of questions */
.drills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (width >= 720px) { .drills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.drill {
  padding: 16px 16px 18px; border-radius: 14px;
  background: var(--dark-2); border: 1px solid var(--hair-dark);
  font-family: var(--serif); font-size: 20px; line-height: 1.2; letter-spacing: -.01em; color: var(--light);
}
.drill:nth-child(2n) { background: #2B271F; }
.drill small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* numbers */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
@media (width >= 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.stat { display: grid; gap: 6px; }
.stat b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.stat span { color: var(--muted); font-size: 15px; }

/* screenshots: hidden until there are some */
.shots[hidden] { display: none; }

/* credits */
.credits { font-size: 14px; color: var(--muted); max-width: 46em; }
.credits a { color: inherit; }

/* close */
.close { text-align: center; }
.close .wrap { display: grid; gap: 18px; justify-items: center; }
.close__icon { width: 88px; height: 88px; border-radius: 22px; }
.close p { color: var(--haze); }

/* footer */
footer { padding: 36px 0 40px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }

/* document pages (privacy, terms) */
.doc-head { padding: 28px 0 0; }
.doc-head a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.doc-head img { width: 36px; height: 36px; border-radius: 9px; }
.doc { max-width: 42em; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 10px; }
.doc h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -.005em; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc__date { color: var(--muted); font-size: 14px; }
.doc__short { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); margin: 20px 0 8px; }
.doc a { color: var(--green); }

/* reveal */
.js .rise, .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
.js .rise.is-in, .js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise, .js .reveal { opacity: 1; transform: none; transition: none; } }
