/* Y web pages: Cocoon look (cream, honey yellow, Urbanist).
   Colours match mobile/src/ui/theme.ts. Name, domain and emails: docs/store/brand-placeholders.md */

:root {
  --bg: #FBF7EE;
  --card: #FFFFFF;
  --honey: #FFC629;
  --honey-text: #9A6B00;
  --soft-yellow: #FFF3C4;
  --soft-yellow-text: #6B5A1E;
  --ink: #1D1B16;
  --ink-soft: #5A5446;
  --sub: #8C8574;
  --line: #EFE8D6;
  --coral: #E8505B;
  --coral-text: #C7343F;
  --radius: 22px;
  --shadow: 0 2px 14px rgba(29, 27, 22, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--honey-text); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--honey); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
}
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Page */
main { padding: 16px 0 48px; }
h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.8px; margin: 18px 0 6px; }
h2 { font-size: 24px; font-weight: 800; margin: 34px 0 8px; letter-spacing: -0.3px; }
h3 { font-size: 19px; font-weight: 800; margin: 22px 0 6px; }
p, li { color: var(--ink); }
.lead { font-size: 19px; color: var(--ink-soft); margin-top: 0; }
.meta { color: var(--sub); font-size: 15px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
strong { font-weight: 800; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.draft {
  background: var(--soft-yellow); color: var(--soft-yellow-text);
  border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; font-size: 15px;
}
.draft strong { color: var(--ink); }

.notice {
  border-left: 5px solid var(--coral); background: var(--card); border-radius: 12px;
  padding: 12px 16px; margin: 16px 0; box-shadow: var(--shadow);
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 60px; margin: 10px 0;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--honey);
  color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.button {
  display: inline-block; background: var(--honey); color: var(--ink); text-decoration: none;
  font-weight: 800; padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow);
}
.button:hover { color: var(--ink); filter: brightness(0.97); }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: var(--soft-yellow); }
tr:last-child td { border-bottom: 0; }

details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin: 10px 0; padding: 0 18px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--honey-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 14px; margin-bottom: 0; }

.toc { columns: 2; column-gap: 24px; font-size: 15px; }
.toc li { break-inside: avoid; }

code { background: var(--soft-yellow); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

/* Forms (the /delete-account flow) */
[hidden] { display: none !important; }
.flow label { display: block; font-weight: 800; margin: 4px 0 6px; }
.flow input {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.flow input:focus { outline: none; border-color: var(--honey); background: #fff; }
.flow .code-input { max-width: 220px; letter-spacing: 6px; font-weight: 800; font-size: 24px; }
.flow .hint { color: var(--sub); font-size: 14px; margin: 6px 0 0; }
.flow h3 { margin-top: 0; }
.flow h2:focus { outline: none; }
.form-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
button.button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
button.button:disabled, .button-link:disabled { opacity: .5; cursor: wait; }
.button-danger { background: var(--coral); color: #fff; }
.button-danger:hover { color: #fff; filter: brightness(0.95); }
.button-link {
  background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: var(--honey-text);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.button-link:hover { color: var(--ink); }
.button:focus-visible, .button-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.form-message:empty { display: none; }
.form-message { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.form-message-error { background: #FDE7E8; color: var(--coral-text); }
.form-message-info { background: var(--soft-yellow); color: var(--soft-yellow-text); }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--sub); font-size: 14px; }
.site-footer a { color: var(--sub); font-weight: 600; margin-right: 14px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  .toc { columns: 1; }
  .card { padding: 16px; }
}
