/* fuobe.com's contact page and Terms (src/contact/pages.ts). The site's own tokens (its light and .dark values),
   fonts (Inter, Instrument Serif) and shapes, so these pages read as part of fuobe.com. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --background: lab(100% 0 0);
  --foreground: lab(11.2426% .197954 -.727198);
  --card: lab(100% 0 0);
  --sidebar: lab(98.2514% .0972152 -.364745);
  --primary: lab(40.9148% 38.7654 -72.8597);
  --primary-foreground: lab(100% 0 0);
  --muted: lab(95.1194% .0972152 -.364745);
  --muted-foreground: lab(46.4805% .495732 -1.81742);
  --border: lab(91.9874% .0972748 -.364745);
  --input: lab(90.6942% .293255 -1.09323);
  --ring: lab(53.6994% 25.0738 -59.3316);
  --brand-text: lab(35.1607% 38.1845 -69.3854);
  --brand-faint: lab(40.9148% 38.7654 -72.8597 / .08);
  --destructive: lab(48.7813% 67.7282 48.0123);
  --success: lab(50.5574% -37.6542 28.604);
  --elevation-soft: 0 4px 12px lab(0% 0 0 / .05);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Instrument Serif", ui-serif, Georgia, serif;
}
html.dark {
  color-scheme: dark;
  --background: lab(5.52219% .155829 -.578761);
  --foreground: lab(98.2514% .0972152 -.364745);
  --card: lab(11.2426% .197954 -.727198);
  --sidebar: lab(8.33365% .300974 -1.08823);
  --primary: lab(47.1472% 33.8582 -69.4748);
  --primary-foreground: lab(100% 0 0);
  --muted: lab(17.6049% .400841 -1.45125);
  --muted-foreground: lab(69.2341% .293851 -1.09284);
  --border: lab(100% 0 0 / .08);
  --input: lab(100% 0 0 / .12);
  --ring: lab(58.754% 20.157 -52.6067);
  --brand-text: lab(68.4128% 15.6242 -45.9335);
  --brand-faint: lab(47.1472% 33.8582 -69.4748 / .14);
  --destructive: lab(60.882% 63.0569 37.6481);
  --success: lab(69.4932% -46.304 35.0451);
  --elevation-soft: 0 6px 12px lab(0% 0 0 / .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--sidebar); color: var(--foreground);
  font: 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { padding: 20px 0 8px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.logo span { font: 24px/1 var(--font-heading); letter-spacing: -.01em; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--muted-foreground); border: 1px solid var(--border); background: var(--card); transition: color .1s, border-color .1s; }
.back:hover { color: var(--foreground); }
.back svg { width: 14px; height: 14px; }

/* page head */
main { flex: 1; padding: 32px 0 48px; }
h1 { font: 44px/1.05 var(--font-heading); letter-spacing: -.01em; margin: 0; }
.lead { margin: 10px 0 0; color: var(--muted-foreground); font-size: 16px; max-width: 34em; text-wrap: pretty; }
@media (max-width: 520px) { h1 { font-size: 38px; } main { padding-top: 20px; } }

/* cards */
.card { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--elevation-soft); }
@media (max-width: 520px) { .card { padding: 20px; border-radius: 16px; } }

/* the form */
.field { display: block; margin-top: 18px; }
.field:first-child { margin-top: 0; }
.label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.label small { font-weight: 400; color: var(--muted-foreground); font-size: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.row.first { margin-top: 0; }
.row .field { margin-top: 0; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 18px; } }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--foreground); background: var(--background);
  border: 1px solid var(--input); border-radius: 10px; padding: 10px 12px; min-height: 44px; outline: none;
  transition: border-color .1s, box-shadow .1s; -webkit-appearance: none; appearance: none;
}
html.dark input[type=text], html.dark input[type=email], html.dark select, html.dark textarea { background-color: lab(100% 0 0 / .03); }
select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
html.dark select option { background: #1e1e1f; }
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px lab(53.6994% 25.0738 -59.3316 / .25); }
::placeholder { color: var(--muted-foreground); opacity: .8; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted-foreground); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--primary); color: var(--primary-foreground); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: filter .1s, opacity .1s; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.actions .note { font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px;
  background: lab(48.7813% 67.7282 48.0123 / .08); color: var(--foreground); border: 1px solid lab(48.7813% 67.7282 48.0123 / .25); }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--destructive); }

.mail-line { margin-top: 20px; font-size: 14px; color: var(--muted-foreground); text-align: center; }
.mail-line a, .mail-line .mail { color: var(--brand-text); text-decoration: none; font-weight: 500; }
.mail-line a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* thank-you */
.done { text-align: center; padding: 40px 28px; }
.done .tick { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-faint); color: var(--brand-text); }
.done .tick svg { width: 26px; height: 26px; }
.done h2 { font: 34px/1.1 var(--font-heading); margin: 0; }
.done p { color: var(--muted-foreground); margin: 10px auto 0; max-width: 28em; }
.done .actions { justify-content: center; }

/* terms */
.updated { margin-top: 14px; font-size: 12px; color: var(--muted-foreground); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.sec { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.sec.wide { grid-column: 1 / -1; }
.sec .head { display: flex; align-items: center; gap: 12px; }
.sec .icon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-faint); color: var(--brand-text); }
.sec .icon svg { width: 18px; height: 18px; }
.sec h2 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.sec p, .sec ul { margin: 12px 0 0; color: var(--muted-foreground); text-wrap: pretty; }
.sec ul { padding-left: 1.1em; }
.sec li + li { margin-top: 4px; }
.sec a { color: var(--brand-text); text-decoration: none; }
.sec a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted-foreground); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--foreground); }
.foot .name { font: 20px/1 var(--font-heading); color: var(--foreground); }
.done .mail.big, .done a.mail.big { color: var(--brand-text); font-weight: 500; text-decoration: none; }
.done a.mail.big:hover { text-decoration: underline; text-underline-offset: 2px; }
