/* Bloomdear site — the app's approved "Sade" look (5 Nov 2026):
   soft grey ground, white rounded cards with a soft shadow, black pill
   buttons, colour only in small kind icons. Same tokens as lib/core/theme.dart. */

:root {
  --bg: #f4f4f6;
  --card: #ffffff;
  --ink: #111114;
  --ink-2: #5b5b66;
  --line: #e4e4ea;
  --primary: #111114;
  --on-primary: #ffffff;
  --bday: #c4373c;    --bday-soft: #fdecec;
  --anniv: #6a4cc4;   --anniv-soft: #f0ecfb;
  --memo: #4b5563;    --memo-soft: #eef0f3;
  --custom: #0f766e;  --custom-soft: #e3f4f1;
  --today: #e5484d;
  --shadow: 0 4px 18px rgb(20 20 30 / 0.05);
  --shadow-hero: 0 8px 30px rgb(20 20 30 / 0.08);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, system-ui, sans-serif;

  --r-hero: 28px;
  --r-card: 20px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --wide: 1140px;
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10;
    --card: #1b1b1f;
    --ink: #f2f2f5;
    --ink-2: #a1a1aa;
    --line: #2a2a30;
    --primary: #f2f2f5;
    --on-primary: #111114;
    --bday: #ff8a8e;    --bday-soft: #3a1f21;
    --anniv: #b4a2f0;   --anniv-soft: #2a2340;
    --memo: #b5bcc6;    --memo-soft: #262a31;
    --custom: #5fd1c3;  --custom-soft: #173330;
    --today: #ff6b6f;
    --shadow: 0 4px 18px rgb(0 0 0 / 0.35);
    --shadow-hero: 0 8px 30px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--card); padding: 0.5rem 1rem; z-index: 10; }
.shell { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

/* ---------- header ---------- */
.site-head { padding-block: 1.1rem; }
.site-head .shell { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--card); box-shadow: var(--shadow); }
.site-nav .lang { background: var(--card); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.button, .store {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px;
  padding: 0 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--primary); color: var(--on-primary); border: 0;
}
.store { padding: 0.45rem 1.25rem 0.45rem 1rem; line-height: 1.15; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; }
.store strong { font-size: 16px; }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) var(--section); }
.hero .shell { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 13ch; }
.hero .lede { margin-top: 1.25rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.fine { margin-top: 0.9rem; font-size: 14px; color: var(--ink-2); }
.phone {
  position: relative; justify-self: center; width: min(100%, 320px);
  border-radius: 48px; padding: 10px; background: #0b0b0d;
  box-shadow: var(--shadow-hero), 0 30px 60px -20px rgb(20 20 30 / 0.35);
  aspect-ratio: 588 / 1280;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
@media (min-width: 880px) {
  .hero .shell { grid-template-columns: 1.1fr 0.9fr; }
  .hero .phone { justify-self: end; margin-right: 6%; }
}

/* ---------- section heads ---------- */
.sec { padding-block: 0 var(--section); }
.sec-head { max-width: var(--measure); margin-bottom: 1.75rem; }
.sec-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); font-weight: 800; }
.sec-head p { margin-top: 0.75rem; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- features (bento of soft cards) ---------- */
.bento { display: grid; gap: 14px; }
.bento .card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bento h3 { font-size: 1.2rem; font-weight: 700; }
.bento p { color: var(--ink-2); }
.bento .lead { padding: 1.75rem; }
.bento .lead h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.bento .lead p { font-size: 1.08rem; max-width: 46ch; }
.icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--tone); margin-bottom: 0.4rem;
}
.icon svg { width: 22px; height: 22px; }
.k-bday { --tone: var(--bday); --soft: var(--bday-soft); }
.k-anniv { --tone: var(--anniv); --soft: var(--anniv-soft); }
.k-memo { --tone: var(--memo); --soft: var(--memo-soft); }
.k-custom { --tone: var(--custom); --soft: var(--custom-soft); }
.countdown { display: flex; align-items: baseline; gap: 0.4rem; margin-top: auto; padding-top: 1rem; }
.countdown b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-weight: 700; font-size: 1.2rem; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .lead { grid-column: span 2; }
}

/* ---------- looks ---------- */
.looks { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.looks figure { margin: 0; display: grid; gap: 0.7rem; justify-items: center; }
.looks .phone { width: 100%; max-width: 240px; border-radius: 36px; padding: 7px; }
.looks .phone img { border-radius: 30px; }
.looks figcaption { font-weight: 600; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) { .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- privacy ---------- */
.where { display: grid; gap: 14px; margin: 0; }
.where .card { padding: 1.4rem 1.5rem; }
.where dt { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.where dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.where dd { margin: 0.5rem 0 0; color: var(--ink-2); }
.more { margin-top: 1.25rem; }
@media (min-width: 860px) { .where { grid-template-columns: repeat(3, 1fr); } }

.update .card { padding: 1.3rem 1.5rem; max-width: 760px; color: var(--ink-2); }
.update strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { padding-block: 2.5rem 3rem; color: var(--ink-2); font-size: 15px; }
.site-foot .shell { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
.site-foot .sig { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--ink-2); }

/* ---------- document pages (privacy, support, deletion) ---------- */
.doc { padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem) var(--section); }
.doc .shell { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); font-weight: 800; }
.doc h1 + p { margin-top: 1rem; }
.doc h2 { font-size: 1.3rem; font-weight: 800; margin-top: 2.4rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc p + p { margin-top: 0.9rem; }
.doc h2 + p, .doc h2 + ol, .doc h2 + ul, .doc h2 + .table-wrap { margin-top: 0.8rem; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.45rem; }
.doc .meta { margin-top: 0.6rem; color: var(--ink-2); font-size: 15px; }
.doc .summary, .doc .panel {
  margin-top: 1.5rem; padding: 1.4rem 1.5rem; background: var(--card);
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
.doc .panel h2 { margin-top: 0; }
.doc .alt { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 700; }
.doc .button { margin-top: 1rem; }
/* Placeholders to fill before launch: visible but quiet. */
.todo { border-bottom: 2px dashed var(--bday); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
