/* Form Your Day — public site stylesheet.
   Tokens are design/system/tokens.json verbatim; the component layer follows the
   Claude Design handoff (design/website/claude-design-brief.md). No framework,
   no third-party font, no new colour. */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F2EFE9; --surface: #FBFAF7; --raised: #FFFFFF;
  --text-primary: #171A18; --text-secondary: #5C635E; --text-tertiary: #656D68; --text-on-accent: #FFFFFF;
  --separator: rgba(23, 26, 24, .10);
  --mint: #1F7A55; --tint: #DCEFE3; --attention: #965F17; --critical: #A33227;
  --phone-shell: #0B0D0C;

  --font: -apple-system, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: 20px;
  --maxw: 1120px;

  --r-control: 12px; --r-card: 16px; --r-media: 20px; --r-sheet: 28px; --r-pill: 999px;

  --dur: 180ms; --ease: cubic-bezier(.2, .6, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D0C; --surface: #161917; --raised: #1E2220;
    --text-primary: #F1F4F0; --text-secondary: #A3AAA5; --text-tertiary: #828B85; --text-on-accent: #0B1F16;
    --separator: rgba(255, 255, 255, .10);
    --mint: #7BE0A8; --tint: #16332A; --attention: #E7B166; --critical: #F0958A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D0C; --surface: #161917; --raised: #1E2220;
  --text-primary: #F1F4F0; --text-secondary: #A3AAA5; --text-tertiary: #828B85; --text-on-accent: #0B1F16;
  --separator: rgba(255, 255, 255, .10);
  --mint: #7BE0A8; --tint: #16332A; --attention: #E7B166; --critical: #F0958A;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text-primary); font-family: var(--font); font-size: 17px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, ul, ol { margin: 0; }
h1, h2, h3, p { text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -100px; background: var(--mint); color: var(--text-on-accent); padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; z-index: 20; }
.skip-link:focus { top: var(--s3); text-decoration: none; }

/* Theme-specific artwork: the icon file follows the resolved theme. */
.icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-light { display: none; }
  :root:not([data-theme="light"]) .icon-dark { display: block; }
}
:root[data-theme="dark"] .icon-light { display: none; }
:root[data-theme="dark"] .icon-dark { display: block; }

/* ---------- 3. Type scale ---------- */
.t-display { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; }
.t-h2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.t-h3 { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-lead { font-size: 17px; line-height: 25px; }
.t-body { font-size: 17px; line-height: 24px; }
.t-sub { font-size: 15px; line-height: 21px; }
.t-foot { font-size: 13px; line-height: 18px; }
.t-eyebrow { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }
.accent { color: var(--mint); }
.strong { font-weight: 600; }
.measure { max-width: 60ch; }
.measure-narrow { max-width: 34ch; }
.measure-wide { max-width: 62ch; }

/* ---------- 4. Layout ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.section { padding: 44px 0; }
.section--band { background: var(--surface); border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); }
.section--hero { padding: 40px 0; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.grid--start { align-items: start; }
.grid--center { align-items: center; }
.grid--wide { gap: var(--s6); }

@media (min-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .grid--wide { gap: var(--s6); }
}
@media (min-width: 1040px) {
  :root { --gutter: 64px; }
  .section { padding: 88px 0; }
  .section--hero { padding: 64px 0; }
  .t-display { font-size: 52px; line-height: 58px; }
  .t-h2 { font-size: 34px; line-height: 41px; }
  .t-h3 { font-size: 20px; line-height: 26px; }
  .t-lead { font-size: 21px; line-height: 30px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- 5. Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--separator); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 64px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.nav { display: none; gap: 2px; align-items: center; }
.nav a { padding: 8px 10px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--mint); }
.header-tools { display: flex; align-items: center; gap: var(--s2); }
.header-tools .segmented { display: none; }
.nav-toggle { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--separator); background: var(--bg); font-size: 15px; font-weight: 600; }
.mobile-menu { border-top: 1px solid var(--separator); display: none; flex-direction: column; padding-top: var(--s2); padding-bottom: var(--s4); }
.mobile-menu[data-open="true"] { display: flex; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--separator); color: var(--text-secondary); font-size: 15px; }
.mobile-menu a[aria-current="page"] { color: var(--mint); }
.mobile-menu .segmented { align-self: flex-start; margin-top: var(--s4); }
@media (min-width: 1040px) {
  .site-header .bar { gap: var(--s4); }
  .nav { display: flex; }
  .header-tools .segmented { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

.site-footer { background: var(--surface); border-top: 1px solid var(--separator); padding: 36px 0; }
.footer-brand { display: flex; align-items: center; gap: var(--s3); }
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-note { max-width: 44ch; }
.site-footer .segmented { align-self: flex-start; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--s4); }
.footer-links a { color: var(--text-secondary); font-size: 15px; line-height: 21px; }

.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--separator); border-radius: var(--r-pill); padding: 2px; }
.segmented a, .segmented button { display: inline-flex; align-items: center; padding: 6px 11px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.segmented a:hover, .segmented button:hover { text-decoration: none; color: var(--text-primary); }
.segmented [aria-current="true"], .segmented [aria-pressed="true"] { background: var(--tint); color: var(--mint); }
.theme-toggle { width: 36px; height: 36px; border-radius: var(--r-pill); border: 1px solid var(--separator); background: var(--bg); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.theme-toggle .glyph-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .glyph-light { display: none; }
:root[data-theme="dark"] .theme-toggle .glyph-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .glyph-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .glyph-dark { display: inline; }
}
.no-js .theme-toggle { display: none; }

/* First-visit language suggestion: a quiet bar, never a redirect. */
.lang-suggest { display: none; background: var(--tint); color: var(--text-primary); border-bottom: 1px solid var(--separator); }
.lang-suggest[data-open="true"] { display: block; }
.lang-suggest .bar { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 10px 0; font-size: 15px; line-height: 21px; }
.lang-suggest a { font-weight: 600; }
.lang-suggest button { border: 0; background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; padding: 6px 0; }

/* ---------- 6. Components ---------- */
.card { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: var(--s2); }
.card--raised { background: var(--raised); }
.card--on-canvas { background: var(--bg); }
.card--cap { gap: var(--s3); }
.card--cap .not { margin-top: var(--s1); border-top: 1px solid var(--separator); padding-top: var(--s3); display: flex; gap: var(--s2); }
.card--cap .not .label { flex: none; font-weight: 600; }
@media (min-width: 1040px) { .card { padding: 24px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: var(--r-pill); padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity var(--dur) var(--ease); text-align: center; }
.btn--lg { padding: 14px 24px; font-size: 17px; }
.btn:hover { opacity: .9; text-decoration: none; }
.btn--primary { background: var(--mint); color: var(--text-on-accent); }
.btn--secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--separator); }
.btn--square { border-radius: 14px; height: 56px; padding: 0 20px; }
.btn[disabled] { opacity: .6; cursor: default; }
.chip { min-height: 44px; border: 1px solid var(--separator); border-radius: var(--r-pill); padding: 10px 16px; background: var(--raised); font-size: 15px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.chip:hover { border-color: var(--mint); }
.chip[aria-pressed="true"] { border-color: var(--mint); color: var(--mint); background: var(--tint); }

.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--mint); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; line-height: 18px; font-weight: 600; }
/* "Yakında App Store'da" — at launch the same 200×56 box holds the App Store badge. */
.store-badge { display: flex; align-items: center; gap: 12px; width: 200px; height: 56px; border-radius: 14px; background: var(--tint); border: 1px solid var(--separator); padding: 0 16px; color: var(--mint); font-size: 15px; font-weight: 600; line-height: 17px; }
.store-badge .dot { flex: none; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--mint); }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-card); padding: 16px 18px; background: var(--tint); color: var(--text-primary); }
.notice .dot { flex: none; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--mint); margin-top: 8px; }
.notice--attention { background: transparent; border: 1px solid var(--attention); }
.notice--attention .dot { background: var(--attention); }
.notice--critical { background: transparent; border: 1px solid var(--critical); flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-control); }
.notice--critical .title { color: var(--critical); font-weight: 600; }

.bullets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; }
.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--mint); margin-top: 8px; }
.bullets--small li::before { width: 5px; height: 5px; margin-top: 9px; background: var(--text-tertiary); }
.bullets--attention li::before { width: 5px; height: 5px; margin-top: 9px; background: var(--attention); }
.bullets--mint-small li::before { width: 5px; height: 5px; margin-top: 9px; }
.bullets--tight { gap: var(--s3); }

.trust-panel { background: var(--tint); border-radius: var(--r-media); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.trust-panel .grid { gap: var(--s3); }
.trust-panel .bullets li { align-items: flex-start; }
.trust-panel .bullets li::before { margin-top: 7px; }

.step { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--mint); }

/* FAQ */
.faq { border-top: 1px solid var(--separator); }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 16px 0; font-size: 17px; line-height: 24px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-secondary); padding-bottom: 18px; max-width: 62ch; }

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field > label, .field > .label { font-size: 15px; line-height: 21px; font-weight: 600; }
.input, .textarea { width: 100%; background: var(--raised); border: 1px solid var(--separator); border-radius: var(--r-control); padding: 12px 14px; font-size: 17px; line-height: 22px; color: var(--text-primary); }
.textarea { min-height: 132px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }
.input:focus, .textarea:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--critical); border-width: 1.5px; }
.field-error { font-size: 13px; line-height: 18px; color: var(--critical); }
.field-error:empty { display: none; }
.field-hint, .counter { font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.field-meta { display: flex; justify-content: space-between; gap: var(--s3); }
.counter { margin-left: auto; font-variant-numeric: tabular-nums; }
.consent { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--separator); padding-top: var(--s5); }
.consent input { width: 22px; height: 22px; accent-color: var(--mint); margin-top: 2px; flex: none; }
.consent label { font-size: 15px; line-height: 21px; }
.form-card { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-media); padding: 24px; display: flex; flex-direction: column; gap: var(--s5); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.no-js .js-only, .js .no-js-only { display: none; }
.success { background: var(--surface); border: 1px solid var(--mint); border-radius: var(--r-card); padding: 28px; display: none; flex-direction: column; gap: 12px; }
.success[data-open="true"] { display: flex; }
.success .mark { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--tint); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.form-card[data-hidden="true"] { display: none; }
.server-error[hidden] { display: none; }

/* Numbered steps (account deletion) */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-control); padding: 14px 16px; }
.steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--tint); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* Document template (privacy / terms / licenses / deletion) */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: var(--s5); }
.doc--wide { max-width: 860px; }
.doc-section { display: flex; flex-direction: column; gap: 10px; }
.doc-section h2 { color: var(--mint); }
.controller { gap: 6px; }
.table { border: 1px solid var(--separator); border-radius: var(--r-card); overflow: hidden; width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--separator); font-size: 15px; line-height: 21px; }
.table th { background: var(--surface); font-size: 13px; line-height: 18px; color: var(--text-tertiary); font-weight: 600; }
.table td:first-child { font-weight: 600; }
.table td:last-child { color: var(--text-secondary); }
.table tr:last-child td { border-bottom: 0; }

/* Synthetic phone mocks */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 280px; border-radius: 40px; background: var(--phone-shell); padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }
.phone .screen { border-radius: 31px; background: var(--surface); overflow: hidden; }
.phone--canvas .screen { background: var(--bg); }
.phone .statusbar { display: flex; justify-content: space-between; padding: 12px 18px 4px; color: var(--text-tertiary); font-size: 11px; font-weight: 600; }
.phone .content { padding: 8px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.phone .entry { background: var(--raised); border: 1px solid var(--separator); border-radius: var(--r-control); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.phone--canvas .entry { background: var(--surface); flex-direction: row; justify-content: space-between; gap: 10px; }
.phone .entry .line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.phone .entry .value { color: var(--text-secondary); flex: none; text-align: right; }
.tag { align-self: flex-start; background: var(--tint); color: var(--mint); border-radius: var(--r-pill); padding: 3px 9px; font-size: 11px; line-height: 14px; font-weight: 600; }

/* ---------- 7. Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}
