/* ilmea.app -- the app's palette (lib/theme/app_theme.dart), system fonts,
   no external requests, no scripts. Mobile first. */
:root {
  --primary: #9b4058;
  --primary-dark: #7f3047;
  --background: #f7f2ea;
  --surface: #fffcf8;
  --primary-soft: #f5e5e8;
  --text: #292421;
  --text-muted: #6f6762;
  --border: #e9ded3;
  --todo-bg: #fff4d6;
  --todo-border: #c99a2e;
  --radius: 16px;
  --column: 44rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- header / nav ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 120px;
  height: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
}

/* ---- main ---- */
main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.hero img {
  width: 260px;
  margin: 0 auto 1rem;
  display: block;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.features strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
}

.notice {
  border-left: 4px solid var(--todo-border);
  background: var(--todo-bg);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 600;
}

.steps {
  padding-left: 1.4rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.ui {
  font-weight: 600;
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 0 0.3rem;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Draft notice + open items: legal texts are NOT final. */
.draft {
  border: 2px solid var(--todo-border);
  background: var(--todo-bg);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.draft strong {
  display: block;
  margin-bottom: 0.25rem;
}

.draft p:last-child {
  margin-bottom: 0;
}

.todo {
  background: var(--todo-bg);
  border: 1px dashed var(--todo-border);
  border-radius: 6px;
  padding: 0 0.3rem;
  color: var(--text);
  font-weight: 600;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.1rem;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand img {
    width: 140px;
  }
}

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