/* Onigiri's colours, taken from the app (App/Shared/Theme.swift and the AccentColor asset).
   Light: rice white with an umeboshi accent. Dark: "nori noir", green-black with a coral accent.
   Show colours use the app's hue-based tints: --h on an element is the show's hue in degrees. */

:root {
  --bg: #F7F3EA;
  --card: #FFFFFF;
  --text: #1F2420;
  --text-2: #5E655F;
  --accent: #D85A30;
  --on-accent: #FFFFFF;
  --line: rgba(31, 36, 32, 0.1);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px rgba(60, 40, 20, 0.08);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0E0B;
    --card: #161C17;
    --text: #F2EFE6;
    --text-2: #9AA39B;
    --accent: #FF8F78;
    --on-accent: #0A0E0B;
    --line: rgba(242, 239, 230, 0.1);
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A0E0B;
  --card: #161C17;
  --text: #F2EFE6;
  --text-2: #9AA39B;
  --accent: #FF8F78;
  --on-accent: #0A0E0B;
  --line: rgba(242, 239, 230, 0.1);
  --shadow: none;
  color-scheme: dark;
}

/* Show tints, as in ShowTint: a pastel wash, a strong fill, and inks for text on the wash. */
[style*="--h"] {
  --wash: hsl(var(--h) 80% 90%);
  --glow: var(--wash);
  --fill: hsl(var(--h) 55% 56%);
  --ink: hsl(var(--h) 67% 17%);
  --ink-2: hsl(var(--h) 54% 33%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [style*="--h"] {
    --wash: color-mix(in srgb, #151B16 90%, hsl(var(--h) 43% 43%));
    --glow: color-mix(in srgb, #151B16 50%, hsl(var(--h) 43% 43%));
    --fill: hsl(var(--h) 87% 77%);
    --ink: hsl(var(--h) 44% 95%);
    --ink-2: hsl(var(--h) 70% 74%);
  }
}

:root[data-theme="dark"] [style*="--h"] {
  --wash: color-mix(in srgb, #151B16 90%, hsl(var(--h) 43% 43%));
  --glow: color-mix(in srgb, #151B16 50%, hsl(var(--h) 43% 43%));
  --fill: hsl(var(--h) 87% 77%);
  --ink: hsl(var(--h) 44% 95%);
  --ink-2: hsl(var(--h) 70% 74%);
}

/* Base */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  transition: background-color 0.25s, color 0.25s;
}

a { color: var(--accent); }

h1, h2 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }

h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; margin-bottom: 0.6rem; }

p { margin: 0; }

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

/* Header */

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.brand-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.i-moon { fill: currentColor; }
.i-sun { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-sun circle { fill: currentColor; stroke: none; }

/* The icon shows the mode you'd switch to. */
.i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.eyebrow { color: var(--accent); font-weight: 800; margin-bottom: 14px; }

.lead { margin-top: 20px; color: var(--text-2); font-size: 1.15rem; max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores.center { justify-content: center; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
}

.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.75; }

.store-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.store.is-placeholder { cursor: default; }

.fine { margin-top: 14px; font-size: 0.9rem; color: var(--text-2); }

/* Phone mockup. The screen is a 402 × 874 pt iPhone at about 3/4 scale, so app sizes
   (17 pt headline, 46 pt covers, 22 pt card corners) are multiplied by 0.75. */

.phone {
  justify-self: center;
  width: min(318px, 100%);
  aspect-ratio: 402 / 874;
  padding: 8px;
  border-radius: 50px;
  background: #111412;
  box-shadow: inset 0 0 0 1.5px #3A403B, var(--shadow), 0 30px 60px -20px rgba(60, 40, 20, 0.3);
  box-sizing: content-box;
}

.screen {
  height: 100%;
  border-radius: 42px;
  background: var(--bg);
  padding: 44px 12px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.75px;
}

.status {
  position: absolute;
  inset: 0 0 auto;
  height: 40px;
  padding: 4px 30px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.island {
  position: absolute;
  left: 50%;
  top: 9px;
  translate: -50% 0;
  width: 92px;
  height: 27px;
  border-radius: 14px;
  background: #000;
}

.sys { display: flex; align-items: center; gap: 5px; }
.sys svg { width: 14px; height: 14px; fill: currentColor; }
.battery { width: 21px; height: 10px; border-radius: 3px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); padding: 1px; position: relative; }
.battery i { display: block; height: 100%; width: 80%; border-radius: 1.5px; background: currentColor; }

.toolbar { display: flex; margin: 0 0 -2px 2px; }

.avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
  color: var(--accent);
}

.avatar svg { width: 23px; height: 23px; fill: currentColor; }

/* SectionLabel and CollapsibleSection: title3 heavy in the accent, with a chevron. */
.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  margin: 6px 3px 0;
}

.chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.label.small { font-size: 16px; margin: 8px 2px 0; }
.label.small .chev { width: 15px; height: 15px; }

/* iOS 26 tab bar: a floating glass capsule over the content, not a docked bar. */
.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  padding: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 7.5px;
  font-weight: 600;
  color: var(--text);
}

.tabbar span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 0 4px;
  border-radius: 99px;
}

.tabbar svg { width: 19px; height: 19px; fill: currentColor; }
.tabbar svg .o { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .on { color: var(--accent); background: color-mix(in srgb, var(--text) 9%, transparent); }
.tabbar .on svg path.o { fill: currentColor; stroke-width: 2; }
.tabbar .on svg path.k { fill: var(--card); }

/* Show cards, like pastelCard in the app */

.card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 16.5px;
  background: linear-gradient(90deg, var(--glow), var(--wash) 75%);
  color: var(--ink);
  flex: none;
}

.cover { flex: none; width: 34.5px; aspect-ratio: 2 / 3; border-radius: 5px; object-fit: cover; display: block; }

.meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; line-height: 1.25; }
.meta b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta span { color: var(--ink-2); font-size: 0.88em; }
.meta small { color: var(--ink-2); font-size: 0.7em; }

.plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--wash);
}

.plus svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }

.card.big { padding: 12px; border-radius: var(--radius); font-size: 17px; gap: 12px; }
.card.big .cover { width: 46px; border-radius: 7px; }
.card.big .plus { width: 40px; height: 40px; }
.demo .card { font-size: 15px; }
.demo .card .cover { width: 40px; }
.demo .card.big { font-size: 17px; }
.demo .card.big .cover { width: 46px; }

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.feature.flip .feature-text { order: 2; }

.feature-text p { color: var(--text-2); max-width: 30em; }

.demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 15px;
}

/* What to watch: a sheet with a grouped form and the picks, as in TonightView */

.sheet-head { display: flex; align-items: center; justify-content: center; position: relative; font-size: 16px; padding: 2px 0 6px; }
.shuffle {
  position: absolute;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 60%, var(--card));
}
.shuffle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.form, .picks { border-radius: 18px; background: color-mix(in srgb, var(--bg) 55%, var(--card)); padding: 0 14px; }
.form div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.form div:last-child { border-bottom: 0; }
.form em { font-style: normal; color: var(--text-2); }
.form em { display: inline-flex; align-items: center; gap: 4px; }
/* chevron.up.chevron.down */
.form em::after {
  content: "";
  width: 9px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M1 5l3.5-3.5L8 5M1 9l3.5 3.5L8 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M1 5l3.5-3.5L8 5M1 9l3.5 3.5L8 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

.hint { color: var(--text-2); font-weight: 700; margin: 6px 4px -2px; }

.picks div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.picks div:last-child { border-bottom: 0; }
.picks img { width: 40px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.picks p { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.picks b { color: var(--accent); font-weight: 600; }
.picks span { color: color-mix(in srgb, var(--accent) 55%, var(--text-2)); font-size: 0.8em; }

/* Widgets on a home screen wallpaper */

.demo.home {
  padding: 28px 22px 34px;
  border: 0;
  background:
    radial-gradient(120% 90% at 0% 0%, #F2B89F 0%, transparent 55%),
    radial-gradient(110% 90% at 100% 100%, #8C7BC9 0%, transparent 60%),
    #D9C9D8;
}

:root[data-theme="dark"] .demo.home {
  background:
    radial-gradient(120% 90% at 0% 0%, #5A2E24 0%, transparent 55%),
    radial-gradient(110% 90% at 100% 100%, #2B2558 0%, transparent 60%),
    #151318;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo.home {
    background:
      radial-gradient(120% 90% at 0% 0%, #5A2E24 0%, transparent 55%),
      radial-gradient(110% 90% at 100% 100%, #2B2558 0%, transparent 60%),
      #151318;
  }
}

.widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px 22px;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.widget {
  margin: 0;
  position: relative;
  border-radius: 22px;
  padding: 13px 14px;
  background: var(--card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.25;
  min-width: 0;
}

.widget figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.widget.medium { grid-column: 1 / -1; gap: 7px; }
.w-head { font-weight: 700; color: var(--text-2); }
.w-row { display: flex; align-items: center; gap: 8px; }
.w-row img { width: 19px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; flex: none; }
.w-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.9em; color: var(--text-2); }
.w-row b { font-size: 1.1em; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-row time { font-variant-numeric: tabular-nums; }
.w-row.past time { color: var(--text-2); }

.widget.small { aspect-ratio: 1; gap: 2px; }
.w-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.w-top img { width: 34px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.w-top span { font-size: 0.85em; font-weight: 700; color: var(--text-2); }
.widget.small b { font-weight: 700; font-size: 1.1em; }
.w-ep { color: var(--text-2); }
.w-count { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.widget.lock {
  align-self: center;
  background: rgba(40, 30, 60, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: none;
  border-radius: 16px;
  padding: 10px 12px;
}

.widget.lock span { opacity: 0.85; }
.widget.lock b, .widget.lock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Week calendar */

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.week div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0 8px;
  border-radius: 14px;
  font-size: 0.75em;
  color: var(--text-2);
  min-height: 92px;
}

.week b { font-size: 1.3em; color: var(--text); }
.week .today { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.week .today span, .week .today b { color: var(--accent); }
.week img { width: 70%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.week img + img { margin-top: -2px; }

/* Notifications */

.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 70%, var(--card));
  border: 1px solid var(--line);
}

.notif img { border-radius: 9px; flex: none; }
.notif div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.notif span { color: var(--text-2); }
.notif time { align-self: flex-start; font-size: 0.8em; color: var(--text-2); }
.notif.later { opacity: 0.6; transform: scale(0.96); }

/* Explore */

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span {
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85em;
  background: var(--line);
}
.chips .on { background: var(--accent); color: var(--on-accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin-top: 6px; }
.grid figure { margin: 0; position: relative; }
.grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; display: block; }
.grid figcaption { font-size: 0.8em; font-weight: 700; line-height: 1.25; margin-top: 6px; }

.add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: #1F2420;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.add.added { background: var(--accent); color: var(--on-accent); }

/* Franchise order */

.order { list-style: none; margin: 0; padding: 0; counter-reset: n; }

.order li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 22px 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}

.order li:last-child { border-bottom: 0; }
.order li::before { content: counter(n); font-weight: 800; font-size: 0.85em; color: var(--text-2); text-align: center; }
.order img { width: 30px; height: 42px; border-radius: 5px; object-fit: cover; }
.order b { line-height: 1.25; }
.order span { color: var(--text-2); font-size: 0.85em; text-align: right; }
.order li.done b { color: var(--text-2); }
.order li.done::before { content: "✓"; color: var(--accent); }
.order li.now { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; border-bottom-color: transparent; }
.order li.now span { color: var(--accent); font-weight: 700; }

/* Accounts */

.services { display: flex; flex-direction: column; gap: 10px; }

.services span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 70%, var(--card));
  border: 1px solid var(--line);
  font-weight: 800;
}

.services i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--fill);
  color: var(--wash);
}

.services em { margin-left: auto; font-style: normal; font-size: 0.8em; font-weight: 700; color: var(--accent); }

/* Closing and footer */

.closing { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.closing p { color: var(--text-2); max-width: 30em; margin: 0 auto; }

footer {
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Narrow screens */

@media (max-width: 800px) {
  body { font-size: 17px; }
  .wrap, .top { padding-left: 16px; padding-right: 16px; }
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 16px; padding-bottom: 40px; }
  .feature { padding-top: 36px; padding-bottom: 36px; }
  .feature.flip .feature-text { order: 0; }
  .phone { width: min(300px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}
