/* Shapehaus: the app's own look (shared/tokens.json in inovyco/shapehaus). Self-contained, light only like v1.
   Stone ground, white cards (20 to 30 radius), flat colour, no shadows or gradients; Figtree 400 to 900.
   Area colours: chores cobalt, due dates tomato, money mint, stuff sunflower (ink text), notes plum. */
:root {
  --ink: #16181D; --stone: #EEEFEA; --paper: #FFFFFF; --muted: #5B5F68; --body2: #3E424B; --line: #DADCD5;
  --cobalt: #2E5BFF; --tomato: #F2542D; --mint: #12A37A; --mint-text: #0B7A5A; --sunflower: #F5B700; --plum: #8A4FD8;
  --t-cobalt: #E3E9FF; --t-tomato: #FDE3DB; --t-mint: #DDF3EC; --t-sun: #FDF0C8; --t-plum: #EFE6FB;
  --d-cobalt: #1D3FC4; --alert: #D2421E;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.shapehaus-page { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--d-cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(860px, 100% - 32px); margin-inline: auto; }
.lwrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, 100% - 32px); margin: 0 auto; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; }
.wordmark { font-size: 24px; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.wordmark b { font-weight: 900; }
.site-header nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 700; }
.pill-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid var(--ink); }
.pill-btn:hover { background: var(--ink); color: var(--paper); }
.site-footer { margin-top: 64px; padding: 28px 16px 40px; border-top: 1px solid var(--line); display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-main { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; }
.studio { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 15px; }
.footer-links a { color: var(--body2); }

/* buttons, chips, store badge */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.btn:hover { color: var(--paper); background: #2A2D35; }
.btn.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sunflower); }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.store-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 18px; background: var(--ink); color: var(--paper); cursor: default; user-select: none; text-decoration: none; }
.store-btn > svg { width: 24px; height: 24px; fill: currentColor; opacity: .85; flex: none; }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; opacity: .9; }
.store-btn small { font-size: 11px; font-weight: 700; color: var(--t-sun); }
.store-btn b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.store-btn::after { content: "Soon"; position: absolute; top: -10px; right: -8px; padding: 5px 9px; border-radius: 999px; background: var(--sunflower); color: var(--ink); font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
html[lang="tr"] .store-btn::after { content: "Yakında"; }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 28px 0 24px; }
.hero h1, .sec-head h2, .cta-card h2, .legal-head h1, .join h1 { font-weight: 900; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 16px 0 14px; }
.hl-cobalt { color: var(--cobalt); } .hl-tomato { color: var(--tomato); } .hl-mint { color: var(--mint-text); }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; color: var(--body2); margin: 0 0 24px; max-width: 40ch; }
.sec { padding: 56px 0 8px; }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.sec-head p { color: var(--body2); margin: 10px 0 0; }
.kicker { margin: 0 0 8px !important; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.legal-strip { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.legal-strip a { color: var(--ink); font-weight: 800; }

/* hero stage: a calm, drawn Today card (no screenshots until the store set exists) */
.stage { background: var(--paper); border-radius: 32px; padding: 22px; display: grid; gap: 14px; max-width: 440px; justify-self: center; width: 100%; }
.stage-top { display: flex; align-items: center; justify-content: space-between; }
.stage-top b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.stage-top span { font-size: 13px; color: var(--muted); font-weight: 700; }
.housemates { display: flex; gap: 14px; }
.mate { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--body2); }
.mate svg { width: 40px; height: 40px; }
.hero-card { background: var(--cobalt); color: var(--paper); border-radius: 26px; padding: 18px 20px; display: grid; gap: 4px; }
.hero-card small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-card b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.hero-card span { font-size: 14px; opacity: .9; }
.mini-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { border-radius: 20px; padding: 12px 14px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.mini small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
.mini.due { background: var(--t-tomato); } .mini.money { background: var(--t-mint); } .mini.stuff { background: var(--t-sun); } .mini.notes { background: var(--t-plum); }

.rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.row { background: var(--paper); border-radius: var(--radius); padding: 24px 22px 26px; }
.row svg { width: 36px; height: 36px; display: block; margin-bottom: 10px; }
.row h3 { font-weight: 900; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.row p { margin: 0; color: var(--body2); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.shot-todo { aspect-ratio: 1320 / 2868; border-radius: 26px; border: 2px dashed var(--line); background: var(--paper); display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }

.about { display: flex; gap: 22px; align-items: center; }
.about h2 { font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; }
.about p { margin: 0; color: var(--body2); max-width: 70ch; }
.about-icon { flex: none; width: 96px; height: 96px; border-radius: 22px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-weight: 900; font-size: 22px; margin: 0; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-weight: 900; font-size: 38px; line-height: 1.1; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); }
.plan .terms { margin: 0; color: var(--body2); }
.plan ul { margin: 8px 0 0; padding-left: 20px; }
.plan-best { border: 3px solid var(--cobalt); }
.plan .badge { position: absolute; top: -13px; right: 18px; padding: 5px 12px; border-radius: 999px; background: var(--sunflower); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 90ch; }

.cta { padding: 56px 0 0; }
.cta-card { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 20px; border-radius: 32px; background: var(--ink); color: var(--paper); }
.cta-card .mark { width: 64px; height: 64px; }
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-card p { margin: 0; max-width: 46ch; color: #D6D8DD; }
.cta-card .store-btn { background: var(--paper); color: var(--ink); }
.cta-card .store-btn small { color: var(--muted); }
.cta-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-card .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }

/* legal and support */
.legal-main { padding: 12px 0 0; }
.legal-head { padding: 24px 0 18px; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-head h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-head .lede { margin: 12px 0 0; max-width: 60ch; }
.card { background: var(--paper); border-radius: 30px; padding: clamp(22px, 4vw, 40px); }
.prose h2 { font-weight: 900; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin: 32px 0 8px; }
.prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong, .prose b { font-weight: 800; }
.tldr { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.tldr li { background: var(--stone); border-radius: 18px; padding: 12px 16px; margin: 0; }
.tldr b { display: block; }
.faq-list { display: grid; gap: 12px; }
.sec .faq-list { max-width: 760px; }
.faq-item { background: var(--paper); border-radius: 20px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style-position: outside; }
.faq-item[open] summary { color: var(--d-cobalt); }
.faq-item p { margin: 0 0 16px; color: var(--body2); }
.contact-callout { margin: 28px 0 0; text-align: center; font-size: 20px; font-weight: 700; }

/* invite page (/shapehaus/j/<code>) */
.join { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 32px 0 0; }
.join .join-mark { width: 88px; height: 88px; }
.join h1 { font-size: clamp(32px, 5vw, 46px); }
.join .lede { margin: 0 auto; }
.code-card { background: var(--paper); border-radius: 30px; padding: 22px 28px; display: grid; gap: 8px; justify-items: center; min-width: min(360px, 100%); }
.code-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.code-value { margin: 0; font-size: clamp(40px, 9vw, 56px); font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.join-help { text-align: left; width: min(560px, 100%); background: var(--paper); border-radius: 26px; padding: 20px 24px; }
.join-help h2 { font-size: 20px; font-weight: 900; margin: 0 0 6px; }
.join-help ol { margin: 0; padding-left: 22px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .rows, .plans { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .site-header nav .nav-link { display: none; }
}
@media (max-width: 640px) {
  body.shapehaus-page { font-size: 16px; }
  .store-btns { width: 100%; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .about { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
