/* Hueno pages (alagumna.com/hueno/). Own look, taken from the app: warm paper, violet ink, letters with their numbers,
   areas outlined like a page waiting to be painted. No third-party fonts: the rounded system face on Apple devices,
   the system sans elsewhere. */

:root {
  --paper: #FBF8F3;
  --sheet: #FFFFFF;
  --ink: #2A2340;
  --muted: #5E5775;
  --line: #CFCADC;
  --violet: #6A4FD6;

  --coral: #EE634A;
  --teal: #2EC4B6;
  --yellow: #F6B93B;
  --purple: #8E6BD8;
  --green: #5FB36B;

  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --sheet-radius: clamp(24px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

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

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

/* Header and footer */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3125rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(106, 79, 214, 0.1); color: var(--ink); }

.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: 24px 0 40px; border-top: 2px solid var(--line); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* The App Store spot: a pill until the app is live */

.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--violet); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 1.0625rem; text-decoration: none; }
a.soon:hover { background: var(--ink); color: #FFFFFF; }

/* Landing: hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: clamp(16px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* The wordmark as in the app: every letter its own color, its number beside it. */
.wordmark { font-size: clamp(3.5rem, 10vw, 6.25rem); font-weight: 900; line-height: 1; letter-spacing: -0.01em; }
.letters span { color: var(--c); }
.letters sub { font-size: 0.26em; font-weight: 800; color: var(--muted); vertical-align: baseline; margin: 0 0.12em 0 0.02em; }

.lede { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.25; max-width: 20em; }
.sub { color: var(--muted); max-width: 30em; }

/* The page that paints itself: numbered areas fill one after another, then start over. */
.page { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 1; background: var(--sheet); border-radius: var(--sheet-radius); padding: clamp(14px, 2.4vw, 22px); box-shadow: 0 30px 60px -36px rgba(42, 35, 64, 0.55); }
.page svg { display: block; width: 100%; height: 100%; }
.page .area { fill: #FFFFFF; stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; animation: paint 12s infinite; animation-delay: var(--d); }
.page .num { font-family: var(--display); font-weight: 700; font-size: 30px; fill: #8A84A3; text-anchor: middle; dominant-baseline: central; animation: number 12s infinite; animation-delay: var(--d); }
@keyframes paint {
  0%, 4% { fill: #FFFFFF; }
  8%, 88% { fill: var(--c); stroke: var(--c); }
  96%, 100% { fill: #FFFFFF; stroke: var(--line); }
}
@keyframes number {
  0%, 4% { opacity: 1; }
  7%, 90% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

/* Landing: screenshots */

.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.screens figcaption { font-family: var(--display); font-weight: 700; }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: clamp(20px, 2.6vw, 34px); border: 4px solid var(--ink); background: var(--sheet); }

/* Landing: sheets */

.sheets { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.sheet { background: var(--sheet); border-radius: var(--sheet-radius); padding: clamp(24px, 5vw, 56px); box-shadow: 0 24px 48px -36px rgba(42, 35, 64, 0.5); }
.sheet-head { max-width: 40em; display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.sheet-head p, .sheet .note { color: var(--muted); }
.sheet .note { margin-top: clamp(20px, 3vw, 28px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 1.375rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.levels li { border: 2px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.levels .dots { display: flex; gap: 4px; }
.levels .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.levels .dots i.on { background: var(--coral); }
.levels p { color: var(--muted); font-size: 0.9375rem; }

.categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.categories li { padding: 9px 18px 9px 14px; border-radius: 999px; border: 2px solid var(--line); font-family: var(--display); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.categories li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.checks li { position: relative; padding-left: 44px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='14' fill='%232EC4B6'/%3E%3Cpath d='M9.5 15.5l3.8 3.8 7.2-8' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.checks strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1875rem; color: var(--ink); margin-bottom: 2px; }

.price { background: var(--ink); color: #FFFFFF; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.price p { color: #D9D4EA; max-width: 38em; margin-top: 12px; }

/* Help and privacy: one sheet of paper */

.doc { max-width: 52rem; background: var(--sheet); border-radius: var(--sheet-radius); padding: clamp(24px, 5vw, 56px); margin-top: clamp(8px, 2vw, 24px); box-shadow: 0 24px 48px -36px rgba(42, 35, 64, 0.5); }
.doc h1 { margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: 0.9375rem; margin-bottom: 28px; }
.doc .summary { font-size: 1.1875rem; color: var(--muted); padding-bottom: 24px; margin-bottom: 32px; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal), var(--purple), var(--green)) 1; }
.doc h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 10px; }
.doc li strong { font-family: var(--display); }

/* Narrow screens and reduced motion */

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { align-items: center; text-align: center; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .site-nav a { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .page .area { animation: none; fill: var(--c); stroke: var(--c); }
  .page .num { animation: none; opacity: 0; }
}
