/* 7 Minute Math: the app's palette, frosted orbs and grain, as a web page */
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(fonts/InterTight-Regular.ttf); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(fonts/InterTight-Medium.ttf); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(fonts/InterTight-SemiBold.ttf); }

:root {
  --paper: #F4F7FA; --ink: #14213D; --muted: #2D3542; --line: #CAD5E2; --right: #0B4A30; --green: #16935F;
  --orb1: #8FB3FF; --orb2: #C9A6FF; --orb3: #7FE0D3; --frost: rgba(244, 247, 250, .55);
  --glass: rgba(20, 33, 61, .055); --glass-edge: rgba(20, 33, 61, .18); --grain: .06; --orb-op: .9;
  --primary: rgba(20, 33, 61, .74); --on-primary: #fff; --chat-bg: rgba(255, 255, 255, .78); --bubble-them: #E9E9EB;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1726; --ink: #E9EFF7; --muted: #93A3BC; --line: #2A3B57; --right: #3CCB8F; --green: #3CCB8F;
    --orb1: #2E5BD8; --orb2: #6B3FC6; --orb3: #0F857C; --frost: rgba(14, 23, 38, .4);
    --glass: rgba(255, 255, 255, .08); --glass-edge: rgba(255, 255, 255, .16); --grain: .14; --orb-op: .65;
    --primary: rgba(255, 255, 255, .86); --on-primary: #15171C; --chat-bg: rgba(0, 0, 0, .55); --bubble-them: #26252A;
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter Tight', system-ui, sans-serif; color: var(--ink); background: var(--paper);
  font-feature-settings: 'tnum'; line-height: 1.45; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Background: drifting orbs under frosted glass, with film grain */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: var(--orb-op); animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: min(60vmax, 760px); aspect-ratio: 1; left: -12%; top: -18%; background: var(--orb1); }
.bg i:nth-child(2) { width: min(64vmax, 820px); aspect-ratio: 1; right: -22%; top: 30%; background: var(--orb2); animation-duration: 31s; }
.bg i:nth-child(3) { width: min(55vmax, 700px); aspect-ratio: 1; left: -10%; bottom: -30%; background: var(--orb3); animation-duration: 22s; }
.bg::after { content: ''; position: absolute; inset: 0; background: var(--frost); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
.bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: var(--grain); pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

/* Glass pill buttons, like the app */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); text-decoration: none; font-weight: 600;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .12s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; font-size: 18px; padding: 16px 32px; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.btn .label { line-height: 1.15; }
.soon { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.seven { width: clamp(84px, 14vw, 132px); color: var(--ink); }
.seven path { stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.035em; font-weight: 600; margin: 22px 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.phone {
  justify-self: center; width: min(320px, 78vw); border-radius: 48px; padding: 10px; background: var(--glass);
  border: 1px solid var(--glass-edge); box-shadow: 0 30px 80px -30px rgba(20, 33, 61, .45);
}
.phone img { border-radius: 39px; }

/* Sections */
section.wrap { padding-top: 72px; padding-bottom: 72px; }
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.03em; line-height: 1.04; font-weight: 600; margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 18px; max-width: 34em; }
.pov { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.pov p { font-size: clamp(26px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.15; font-weight: 500; max-width: 22em; margin: 0 auto; }
.pov span { color: var(--muted); }

.rounds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 36px; }
.round { padding: 18px 10px; text-align: center; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); }
.round img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 10px; }
.round b { display: block; font-weight: 500; font-size: 14px; }
.round em { font-style: normal; font-size: 13px; color: var(--muted); }
.mix { width: 44px; height: 44px; margin: 0 auto 10px; font-size: 30px; line-height: 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { padding: 26px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-edge); }
.card h3 { font-size: 20px; letter-spacing: -.01em; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.screens figure { text-align: center; }
.screens figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }
.screens .phone { width: 100%; }
/* iMessage-style thread for the share card */
.chat {
  /* Same screen shape as the app screenshots beside it, messages sitting at the bottom like a real thread */
  aspect-ratio: 900 / 1957; border-radius: 39px; padding: 44px 14px 22px; background: var(--chat-bg);
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  font-family: -apple-system, 'SF Pro Text', 'Inter Tight', system-ui, sans-serif; font-size: 15px; line-height: 1.3;
}
.chat-head { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
/* The messages sit in the middle of the space under the header, so the card lines up with the other screens' content */
.thread { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#A2A6B2, #858994); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.msg { max-width: 78%; padding: 8px 13px; border-radius: 19px; }
.msg.me { align-self: flex-end; background: #0B84FE; color: #fff; }
.msg.them { align-self: flex-start; background: var(--bubble-them); color: var(--ink); }
.msg.card-msg { padding: 0; background: none; max-width: 82%; }
.msg.card-msg img { border-radius: 19px; }
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }

/* A highlighted part of a screenshot, pulled forward and enlarged over its phone */
.zoomed { position: relative; }
.phone .zoom { /* .phone .zoom beats .phone img's 39px screen radius */
  position: absolute; left: 10px; width: calc(100% - 20px); top: calc(10px + (100% - 20px) * var(--t));
  transform: scale(1.14); transform-origin: center top;
  border-radius: 14px; corner-shape: squircle; /* Apple-style continuous corners where supported; plain 14px elsewhere */ border: 1px solid var(--glass-edge);
  box-shadow: 0 24px 60px -18px rgba(20, 33, 61, .5);
}
.stat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }
.stat-list li { padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); font-size: 15px; font-weight: 500; }
.levels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.levels span { padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.privacy { text-align: center; }
.privacy .sub { margin: 0 auto; }
section.final { text-align: center; padding-top: 96px; padding-bottom: 72px; }
.final .seven { margin: 0 auto 24px; }

footer { padding: 28px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { padding: 0; gap: 20px; }
footer a { text-decoration: none; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding: 24px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { text-align: left; padding-top: 16px; }
  .rounds { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .rounds { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr; }
  nav .btn { display: none; }
}
