/* Flick AI — web.
   Palette and type lifted from the app, not invented: values match
   Color+StudySnap.swift and Font+StudySnap.swift. Dark-only, because the app
   is dark-only, and monochrome, because the app's own rule is that standalone
   colour accents read as decoration. White is the accent. */

:root {
  --shell:        #050506;  /* homeShellBackground */
  --card:         #121214;  /* homeCardFillBase */
  --card-hover:   #1C1C1F;  /* homeContinueFill */
  --border:       rgba(44, 44, 48, 0.55);  /* homeCardBorder */
  --border-lift:  rgba(44, 44, 48, 0.9);
  --text:         #FFFFFF;  /* textPrimary */
  --text-2:       #9A9A9E;  /* textSecondary */
  --text-3:       #4E4E52;  /* textTertiary */
  --max: 44rem;
}

* { box-sizing: border-box; }

html { background: var(--shell); }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--shell);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---- header ---- */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 23%;
  display: block;
}

.brand span {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-left: 1.375rem;
  transition: color 0.15s ease;
}
nav.site a:hover { color: var(--text); }

/* ---- type ---- */

h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--text-2); }
p { margin: 0 0 1rem; }

.lede { font-size: 1.0625rem; margin-bottom: 2rem; }

.updated {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }
a:hover { text-decoration-color: var(--text); }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

strong { color: var(--text); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.375em;
}

/* ---- table ---- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td {
  text-align: left;
  padding: 0.6875rem 0.875rem 0.6875rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
}
th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- callout ---- */

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- home ---- */

.hero { padding: 2.5rem 0 0; text-align: center; }

.hero img.mark {
  width: 88px;
  height: 88px;
  border-radius: 23%;
  display: block;
  margin: 0 auto 1.75rem;
}

.hero h1 { font-size: 2.625rem; letter-spacing: -0.035em; }
.hero .lede { max-width: 34rem; margin: 0.75rem auto 0; }

.cta { margin: 2.5rem 0 0; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--text);
  color: var(--shell);
  border-radius: 12px;
  padding: 0.8125rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.appstore:hover { opacity: 0.88; }
.appstore svg { width: 18px; height: 18px; fill: currentColor; }

/* Pre-launch state. Same shape, obviously not a link. */
.appstore.soon {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-lift);
  cursor: default;
}
.appstore.soon:hover { opacity: 1; }

.cta-note { font-size: 0.875rem; color: var(--text-3); margin: 0.875rem 0 0; }

/* ---- footer ---- */

footer.site {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-3);
  display: flex;
  gap: 1.375rem;
  flex-wrap: wrap;
}
footer.site a { color: var(--text-3); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 520px) {
  .hero h1 { font-size: 2.125rem; }
  h1 { font-size: 1.75rem; }
  nav.site a { margin-left: 0; margin-right: 1.125rem; }
  nav.site { width: 100%; }
}

.hero { padding: 4.5rem 0 0; }
.hero h1 { font-size: 3.25rem; line-height: 1.05; letter-spacing: -0.04em; }
.hero .lede {
  font-size: 1.3125rem;
  line-height: 1.5;
  max-width: 31rem;
  margin: 1.5rem auto 0;
  color: var(--text);
}

@media (max-width: 720px) {
  .hero h1 { font-size: 2.5rem; }
  .hero .lede { font-size: 1.1875rem; }
}

/* The hero break is a typographic choice for wide screens. On a phone the line
   wraps naturally, and forcing it there stranded a single word on its own line. */
.br-wide { display: inline; }
@media (max-width: 720px) { .br-wide { display: none; } }
