/* Twinly — Rose Atelier marketing site.
   Colors and type follow docs/handoff/BRAND.md and design/design-tokens.json.
   The infinity-heart mark is a marketing approximation, not the approved master. */

:root {
  --canvas: #bba0ac;
  --shell: #b096a2;
  --pink: #e3bfd0;
  --gray: #d9d6df;
  --lilac: #d5c5e6;
  --ink: #322836;
  --muted: #514052;
  --action: #654677;
  --on-action: #fff9ff;
  --symbol: #b52b40;
  --shadow: #342331;
  --bg: #f4ecf0;
  --paper: #fff9fb;
  --focus: #654677;
  --ok: #2f5d3a;
  --err: #8a2440;
  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-pill: 999px;
  --radius-control: 12px;
  --max: 1120px;
  --gutter: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
}

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

a {
  color: var(--action);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--symbol); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--action);
  color: var(--on-action);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover { color: inherit; }

.brand-mark {
  width: 44px;
  height: 28px;
  transition: transform 240ms ease, filter 240ms ease;
}

.brand:hover .brand-mark {
  transform: translateY(-1.5px) rotate(-2deg) scale(1.035);
  filter: drop-shadow(0 3px 0 rgb(181 43 64 / 0.22)) drop-shadow(0 7px 0 rgb(181 43 64 / 0.12));
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--action) 45%, transparent);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--paper);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  min-width: 48px;
  padding: 0 0.7rem;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--action);
  color: var(--on-action);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 0;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 95ms ease, background 160ms ease;
}

.btn:hover { color: var(--on-action); }

.btn:active { transform: translateY(0.7px) scale(0.975); }

.btn-primary {
  background: var(--action);
  color: var(--on-action);
}

.btn-primary:hover { background: #553a66; color: var(--on-action); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  min-height: 44px;
  padding-inline: 0.4rem;
}

.btn-ghost:hover { color: var(--action); }

.header-cta { display: none; }

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .header-cta { display: inline-flex; }
}

/* Hero */
.hero {
  padding: 2.4rem 0 3rem;
  background:
    radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--lilac) 70%, transparent), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, color-mix(in srgb, var(--pink) 80%, transparent), transparent 55%);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--symbol);
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.15rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--gray);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--symbol);
}

/* Phone mockups */
.phone {
  width: min(100%, 280px);
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 1px 0 rgb(50 40 54 / 0.2),
    0 24px 50px rgb(52 35 49 / 0.28);
}

.phone-screen {
  background: var(--canvas);
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  position: relative;
  color: var(--ink);
}

.notch {
  width: 88px;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 6px;
}

.status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 16px 8px;
  letter-spacing: 0.02em;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.app-head img { width: 28px; height: 18px; }

.app-body { padding: 0 12px 16px; }

.mock-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgb(50 40 54 / 0.06);
}

.mock-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.mock-title { font-weight: 700; font-size: 13.5px; }
.mock-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.avatars {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 13px;
  color: var(--ink);
}

.avatar.a { background: var(--pink); }
.avatar.b { background: var(--lilac); }
.avatar.c { background: var(--gray); }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.chip {
  background: var(--lilac);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
}

.chip.alt { background: var(--pink); }

.memory-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.tile {
  border-radius: 12px;
  min-height: 72px;
  padding: 8px;
  font-size: 11px;
  font-weight: 650;
}

.tile.p { background: linear-gradient(145deg, var(--pink), #f0d4e2); }
.tile.l { background: linear-gradient(145deg, var(--lilac), #e4d6f1); }
.tile.g { background: linear-gradient(145deg, var(--gray), #eceaf1); }
.tile.s { background: linear-gradient(145deg, var(--shell), #c9b0ba); color: var(--paper); }

/* Sections */
section { padding: 3.25rem 0; }

.section-kicker {
  color: var(--symbol);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.55rem;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.feature-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid.four { grid-template-columns: repeat(4, 1fr); }
  .feature-grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 10px 30px rgb(52 35 49 / 0.06);
  height: 100%;
}

.card.pink { background: color-mix(in srgb, var(--pink) 55%, var(--paper)); }
.card.lilac { background: color-mix(in srgb, var(--lilac) 50%, var(--paper)); }
.card.gray { background: color-mix(in srgb, var(--gray) 55%, var(--paper)); }

.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 0.45rem; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .split.reverse .copy { order: 2; }
}

.band {
  background: color-mix(in srgb, var(--canvas) 45%, var(--bg));
}

.not-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.not-list li {
  background: var(--paper);
  border-left: 4px solid var(--symbol);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: 1.1fr 0.9fr 0.9fr; }
}

.price-card {
  background: var(--paper);
  border-radius: var(--radius-hero);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 10px 30px rgb(52 35 49 / 0.07);
}

.price-card.featured {
  background: var(--action);
  color: var(--on-action);
}

.price-card.featured p,
.price-card.featured .price-note { color: color-mix(in srgb, var(--on-action) 85%, var(--lilac)); }

.price-name { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.3rem; }
.price-amt { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; margin: 0.2rem 0 0.7rem; }
.price-note { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }
.price-card ul { margin: 0; padding-left: 1.1rem; }
.price-card li { margin: 0.3rem 0; }

/* Waitlist */
.waitlist {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lilac) 35%, var(--bg)), var(--bg));
}

.wait-card {
  background: var(--paper);
  border-radius: var(--radius-hero);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgb(52 35 49 / 0.1);
  max-width: 560px;
}

.form-row { margin-bottom: 0.9rem; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

input[type="email"],
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--action) 35%, transparent);
  border-radius: var(--radius-control);
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-weight: 650;
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.fineprint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

/* Legal pages */
.legal {
  padding: 2.4rem 0 4rem;
}

.legal-prose {
  max-width: 42rem;
}

.legal-prose h1 { margin-bottom: 0.4rem; }
.legal-prose .meta { color: var(--muted); margin: 0 0 1.5rem; }
.legal-prose h2 { font-size: 1.35rem; margin-top: 1.6rem; }
.legal-prose p, .legal-prose li { color: var(--muted); }
.legal-prose ul { padding-left: 1.2rem; }

.lang-block[hidden] { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  padding: 1.6rem 0 2.2rem;
  background: color-mix(in srgb, var(--shell) 28%, var(--bg));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer-nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--action); }

.copyright { color: var(--muted); font-size: 0.9rem; max-width: 36rem; margin: 0; }

/* 404 */
.empty {
  padding: 4rem 0 5rem;
  text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-mark, .btn { transition: none; }
  .brand:hover .brand-mark { transform: none; filter: none; }
  .btn:active { transform: none; }
}

.stacked { margin-top: 2.5rem; }
