/* Tamiko — shared design system
   Layout concept: an airy, painted-sky boutique. Pale blush paper, navy ink, rose as the one accent;
   illustrations sit in soft rounded frames like windows onto a hand-painted world. */
:root {
  --paper: #FBF8FA;        /* page ground: cool blush-white */
  --paper-2: #F3ECF1;      /* alternate band */
  --sky: #E3EAF6;          /* painted-sky tint for art frames */
  --ink: #111735;          /* navy text */
  --navy: #1A2352;         /* navy surfaces */
  --navy-2: #26306B;
  --rose: #CF6A86;         /* accent, legible on paper */
  --rose-soft: #F5D7E0;
  --muted: #5B6080;        /* secondary text */
  --line: rgba(17, 23, 53, 0.11);
  --on-navy: #F4F1F7;
  --on-navy-muted: #B8BCD8;

  --f-display: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --f-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --s--1: 0.8125rem;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --s-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --s-4: clamp(2.7rem, 1.6rem + 4.4vw, 5.2rem);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rose-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.pad { padding-block: clamp(72px, 10vw, 136px); }
.band { background: var(--paper-2); }
.navy-band { background: var(--navy); color: var(--on-navy); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 248, 250, 0.82); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.wordmark img { height: 34px; width: auto; }
.site-foot .wordmark img { height: 40px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--rose-soft); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: transform .35s var(--ease), opacity .2s; }
.menu-btn span { top: 50%; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .95rem/1 var(--f-body); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: 0 10px 24px -12px rgba(26, 35, 82, .55); }
.btn-primary:hover { background: var(--navy-2); }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -12px rgba(207, 106, 134, .7); }
.btn-rose:hover { background: #BF5776; }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: var(--s--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.h-display { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.h-display em { font-style: italic; color: var(--rose); }
.lede { font-size: var(--s-1); color: var(--muted); max-width: 56ch; margin: 0; }
.navy-band .lede { color: var(--on-navy-muted); }
.navy-band .eyebrow { color: var(--rose-soft); }
.navy-band .h-display em { color: var(--rose-soft); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: var(--s-3); }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Art frames (illustration slots) ---------- */
.art {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: var(--ar, 4 / 3); max-width: 100%;
  background:
    radial-gradient(40% 30% at 25% 30%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(35% 25% at 70% 22%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgba(207,106,134,.25), transparent 70%),
    linear-gradient(180deg, #CFDCF2 0%, var(--sky) 45%, #F7E6EC 100%);
  isolation: isolate;
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; opacity: 0; transition: opacity 1s var(--ease); }
.art img.ok { opacity: 1; }
.art .ph {
  position: absolute; left: 14px; bottom: 14px; z-index: 0; font-size: .75rem; letter-spacing: .04em; color: var(--muted);
  background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.art .ph::before { content: "✦ "; color: var(--rose); }
.art.hills::after {
  content: ""; position: absolute; inset: auto 0 0; height: 38%; z-index: -1;
  background:
    radial-gradient(60% 100% at 20% 100%, #B9CFB0 60%, transparent 61%),
    radial-gradient(70% 90% at 85% 100%, #A6C29F 60%, transparent 61%);
  opacity: .9;
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23CF6A86' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s--1); font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(207,106,134,.5); } 80%,100% { box-shadow: 0 0 0 10px rgba(207,106,134,0); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: var(--s-4); margin-top: 18px; }
.page-hero .lede { margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--navy); color: var(--on-navy); }
.cta-band .copy { padding: clamp(32px, 5vw, 64px); display: grid; gap: 20px; align-content: center; }
.cta-band h2 { font-size: var(--s-3); }
.cta-band .art { border-radius: 0; align-self: center; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; gap: 20px; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rose); }
.faq .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .pm { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq .ans a { color: var(--rose); }

/* ---------- Forms ---------- */
form.form { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; min-width: 0; box-shadow: 0 40px 80px -50px rgba(17,23,53,.35); }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: var(--s--1); font-weight: 600; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,106,134,.15); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .92rem; transition: all .25s var(--ease); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.fine { font-size: var(--s--1); color: var(--muted); margin: 0; }
.fine a { color: var(--rose); }
.form-msg { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--rose-soft); }
.form-msg.err { background: #FDE3E3; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: var(--on-navy); padding-block: 72px 36px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { margin: 0 0 14px; font-size: var(--s--1); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; opacity: .9; transition: color .25s; }
.foot-grid a:hover { color: var(--rose-soft); }
.foot-tag { color: var(--on-navy-muted); margin: 14px 0 0; max-width: 32ch; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--on-navy-muted); font-size: var(--s--1); }

/* ---------- App store buttons (coming soon) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px; border-radius: 14px;
  background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.14); cursor: default; user-select: none; }
.store svg { flex: none; opacity: .9; }
.store-txt { display: grid; line-height: 1.15; }
.store-txt small { font-size: .68rem; letter-spacing: .04em; opacity: .75; }
.store-txt b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.005em; }
.soon { position: static; margin-left: 4px; align-self: center; white-space: nowrap; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--rose); color: #fff; padding: 4px 8px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(207,106,134,.8); }
.stores-foot { margin-top: 22px; }
.stores-foot .store { background: rgba(255,255,255,.06); }
.navy-band .store { background: rgba(255,255,255,.07); }

.cta-band .lede { color: var(--on-navy-muted); }

/* ---------- Motion ---------- */
.rv.pre { opacity: 0; transform: translateY(28px); }
.rv.go { transition: opacity .9s var(--ease), transform .9s var(--ease); }

@media (max-width: 960px) {
  .grid-2, .cta-band { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-btn { display: block; }
  .head-row > .btn { order: 3; }
}
@media (max-width: 640px) {
  .grid-3, .row2 { grid-template-columns: 1fr; }
  .head-row > .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv.pre { opacity: 1; transform: none; }
}
