/* SIROON — siroon.app. One stylesheet for every page; no frameworks, no external requests.
   Colors and type follow the app (app/lib/design/app_theme.dart, welcome screen). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #151219;
  --bg-deep: #100d14;
  --surface: #1f1a24;
  --surface-2: #29242e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eee7f2;
  --text-soft: #d9cfd6;
  --muted: #b7a8b0;
  --peach: #fdbd8d;
  --amber: #f3b582;
  --pink: #ffb2c5;
  --magenta: #c23a72;
  --danger: #ff9a9a;
  --ok: #a8e0bd;
  --placeholder-bg: #3a2a12;
  --placeholder-text: #ffd89a;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --prose: 720px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(194, 58, 114, 0.16), transparent 70%),
    radial-gradient(900px 500px at 100% 0, rgba(253, 189, 141, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--peach);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--pink);
}

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--peach);
  color: #1b1320;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

/* ---- Header ---------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(21, 18, 25, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.42em;
}
.brand:hover {
  color: var(--text);
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 18px;
  font-size: 14px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}
.nav .nav-cta {
  margin-left: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 189, 141, 0.45);
  color: var(--peach);
  white-space: nowrap;
}
.nav .nav-cta:hover {
  color: #1b1320;
  background: var(--peach);
}
.narrow {
  max-width: 640px;
}
.panel-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .nav .nav-optional {
    display: none;
  }
}
@media (max-width: 420px) {
  .nav {
    gap: 2px 12px;
    font-size: 13px;
  }
}

/* ---- Footer ---------------------------------------------------------------------------------- */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.site-footer h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
}

/* ---- Home ------------------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}
@media (min-width: 720px) {
  .hero {
    padding: 112px 0 56px;
  }
}
.hero .mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c6afa9;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.display em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--peach);
}
.lede {
  max-width: 520px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-soft);
}

.availability {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
}
.availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 4px rgba(253, 189, 141, 0.15);
}

.modes {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .modes {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.mode {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  background: var(--surface);
}
.mode picture,
.mode img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.mode::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 13, 20, 0.05) 30%, rgba(16, 13, 20, 0.92) 82%);
}
.mode .mode-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
}
.mode .badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.mode h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}
.mode p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.section {
  margin-top: 88px;
}
.section-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
}
.section-lede {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
}

.pillars {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Documents --------------------------------------------------------------------------------- */

.doc-head {
  padding: 56px 0 8px;
}
.doc-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.15;
}
.doc-head .meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.doc {
  display: grid;
  gap: 40px;
  margin-top: 28px;
}
@media (min-width: 1000px) {
  .doc {
    grid-template-columns: 220px minmax(0, var(--prose));
    gap: 56px;
  }
}
.toc {
  font-size: 14px;
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.toc a {
  color: var(--text-soft);
  text-decoration: none;
}
.toc a:hover {
  color: var(--peach);
}
@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: 92px;
    align-self: start;
  }
}
@media (max-width: 999px) {
  .toc {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
}

.prose {
  max-width: var(--prose);
  min-width: 0;
  overflow-wrap: anywhere;
}
.prose h2 {
  margin: 44px 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  scroll-margin-top: 88px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  scroll-margin-top: 88px;
}
.prose p,
.prose li {
  color: var(--text-soft);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose strong {
  color: var(--text);
}

.note {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.note p {
  margin: 0;
}
.note p + p {
  margin-top: 8px;
}
.note.warn {
  border-color: rgba(253, 189, 141, 0.4);
  background: rgba(253, 189, 141, 0.06);
}

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
td {
  color: var(--text-soft);
}
tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 560px) {
  table.stack thead {
    display: none;
  }
  table.stack tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  table.stack tr:last-child {
    border-bottom: 0;
  }
  table.stack td {
    display: block;
    border: 0;
    padding: 4px 14px;
  }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

.two-col {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.allowed,
.prohibited {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.allowed h3,
.prohibited h3 {
  margin-top: 0;
}
.allowed h3 {
  color: var(--ok);
}
.prohibited h3 {
  color: var(--danger);
}

/* Missing facts stay visible until the owner fills them in. */
.placeholder {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 600;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- Contact ----------------------------------------------------------------------------------- */

.contacts {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .contacts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contacts .card p + p {
  margin-top: 10px;
}

/* ---- Delete account flow ---------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  padding-left: 40px;
  margin: 12px 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--peach);
  font-size: 13px;
  font-weight: 700;
}

.panel {
  margin: 20px 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
.panel h3 {
  margin-top: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}
.button.primary {
  background: #f0e9ee;
  border-color: #f0e9ee;
  color: #1b1320;
}
.button.danger {
  background: #c23a52;
  border-color: #c23a52;
  color: #fff;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .button-row .button {
    width: 100%;
  }
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 0;
  color: var(--text-soft);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--peach);
}

.status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.status:empty {
  display: none;
}
.status.error {
  background: rgba(255, 154, 154, 0.08);
  border: 1px solid rgba(255, 154, 154, 0.35);
  color: #ffd2d2;
}
.status.success {
  background: rgba(168, 224, 189, 0.08);
  border: 1px solid rgba(168, 224, 189, 0.35);
  color: #dff5e7;
}
.status.info {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
}

#google-button {
  min-height: 44px;
}

/* ---- 404 ------------------------------------------------------------------------------------- */

.center {
  text-align: center;
  padding: 120px 0 40px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.section-title.small {
  font-size: 22px;
}

/* Small screens: the header keeps the brand and the call to action; every page link is also in the footer. */
@media (max-width: 520px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}
