/* shineshiao — company site.
   Warm paper, ink, and a "shine" amber. Each app card carries its own app's
   accent so the products keep their identity. No scripts; light and dark. */

:root {
  --paper: #fbf8f2;
  --surface: #ffffff;
  --tint: #f4efe4;
  --ink: #17181c;
  --body: #44464d;
  --muted: #62656e;
  --line: #e8e3d8;

  --sun: #f2b134;
  --sun-soft: #fff1cf;
  --sun-ink: #7a4f00;

  --family: #bf3f2b;      /* Family Hub's coral, darkened for text contrast */
  --family-bar: #ef7258;  /* the coral of its icon */
  --citizen: #00763a;     /* a touch deeper than the app green, for text contrast */
  --citizen-bar: #00843d;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgb(23 24 28 / 0.05), 0 12px 32px -16px rgb(23 24 28 / 0.18);
  --glow-a: rgb(242 177 52 / 0.32);
  --glow-b: rgb(239 114 88 / 0.14);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101216;
    --surface: #181b21;
    --tint: #14171c;
    --ink: #f3f1ea;
    --body: #c5c7ce;
    --muted: #9b9ea8;
    --line: #2a2e37;

    --sun: #f4bf55;
    --sun-soft: #3a2f14;
    --sun-ink: #f4d391;

    --family: #ff9a85;
    --family-bar: #ef7258;
    --citizen: #62d28f;
    --citizen-bar: #1f9d5c;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    --glow-a: rgb(244 191 85 / 0.16);
    --glow-b: rgb(239 114 88 / 0.1);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark-bg { fill: var(--ink); }
.mark-star { fill: var(--sun); }
.mark-dot { fill: var(--sun); }

.brand-name {
  font: 600 20px/1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--body);
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: var(--tint); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small { padding: 9px 16px; font-size: 15px; background: var(--ink); color: var(--paper); }
.btn-small:hover { background: color-mix(in srgb, var(--ink) 88%, var(--sun)); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--sun)); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline { color: var(--ink); border-color: var(--line); background: transparent; padding-block: 14px; }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 112px);
}

.glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, var(--glow-a), transparent 72%),
    radial-gradient(closest-side at 70% 70%, var(--glow-b), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--sun-ink);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 20ch;
  color: var(--ink);
  font: 600 clamp(40px, 7.4vw, 76px)/1.04 var(--serif);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 60ch;
  margin-top: 26px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }

.statement,
.section-title {
  max-width: 22ch;
  color: var(--ink);
  font: 600 clamp(30px, 4.6vw, 46px)/1.1 var(--serif);
  letter-spacing: -0.02em;
}

.vision-text {
  max-width: 64ch;
  margin-top: 22px;
  font-size: 19px;
}

.principles {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.principles li {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.num {
  display: block;
  margin-bottom: 14px;
  color: var(--sun);
  font: 600 34px/1 var(--serif);
}

.principles h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font: 600 19px/1.3 var(--sans);
}

/* ---------- App cards ---------- */

.cards {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.card {
  --accent: var(--ink);
  --bar: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--bar);
}

.card-family { --accent: var(--family); --bar: var(--family-bar); }
.card-citizen { --accent: var(--citizen); --bar: var(--citizen-bar); }

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}

.card h3 {
  color: var(--ink);
  font: 600 22px/1.2 var(--sans);
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.ticks { display: grid; gap: 10px; }

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

.play { display: inline-block; border-radius: 8px; }
.play img { height: 53px; width: auto; }

.fineprint {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.fineprint a { color: var(--body); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.foot {
  display: grid;
  gap: 24px;
}

.foot-brand .brand-name { display: block; margin-bottom: 6px; }
.foot-brand p { color: var(--muted); font-size: 15px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot-links a { color: var(--body); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }

.legal { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 36px 32px 32px; }
  .foot { grid-template-columns: 1fr auto; align-items: start; }
  .foot-brand { grid-column: 1; }
  .foot-links { grid-column: 2; justify-content: flex-end; }
  .legal { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 20px; }
  .nav-link { display: none; }
  .card { padding: 28px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
