:root {
  --bg: #f2eada;
  --bg2: #e6dcc8;
  --surface1: #fdfcf8;
  --surface2: #fbf6ee;
  --border: #e6dccb;
  --text: #1a1712;
  --text-muted: #4a443b;
  --text-faint: #857b6d;
  --teal: #588b8b;
  --rose: #a8657e;
  --orange: #f57c00;
  --blue: #1976d2;
  --onteal: #fdfcf8;
  --link: #a01a58;
  --star: #f57c00;
  --error: #c62828;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1712;
    --bg2: #302a22;
    --surface1: #262019;
    --surface2: #221e17;
    --border: #38312a;
    --text: #faf4ea;
    --text-muted: #c7bca5;
    --text-faint: #8a8073;
    --teal: #6fafb0;
    --rose: #c48ca6;
    --orange: #ffb74d;
    --blue: #90caf9;
    --onteal: #1a1712;
    --link: #c14c84;
    --star: #ffb74d;
    --error: #ef9a9a;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  img.logo-light {
    display: none;
  }
  img.logo-dark {
    display: block;
  }
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Home page (index.html) ===== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.platform-note {
  font-size: 13px;
  color: var(--text-faint);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: pretty;
}

.hero-text p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
  text-wrap: pretty;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-phones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-stage {
  position: relative;
  width: 300px;
  height: 620px;
}

.phone {
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px -34px rgba(26, 23, 18, .55);
}

.phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity .15s;
}

.phone-back {
  position: absolute;
  right: -96px;
  top: 56px;
  width: 232px;
  aspect-ratio: 1206 / 2622;
  border-radius: 34px;
  box-shadow: 0 24px 50px -30px rgba(26, 23, 18, .55);
}

.phone-front {
  position: absolute;
  left: 0;
  top: 0;
  width: 285px;
  aspect-ratio: 1206 / 2622;
  border-radius: 42px;
  background: var(--surface1);
  box-shadow: 0 30px 70px -34px rgba(26, 23, 18, .6);
}

.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg2);
}

.hero-phones .segmented {
  margin-left: -12px;
}

.segmented button {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.segmented button[aria-selected="true"] {
  background: var(--surface1);
  color: var(--text);
}

.pitch2 {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.pitch2 .pitch-lead {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 32ch;
  text-wrap: pretty;
}

.pitch2 .pitch-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.feature-row {
  border-top: 1px solid var(--border);
  padding: 72px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
  align-items: center;
}

.feature-phone {
  display: flex;
  justify-content: center;
}

.phone-tile {
  width: 260px;
  aspect-ratio: 1206 / 2622;
}

.filter-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.filter-phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.phone-filter {
  width: 220px;
  flex: 1 1 220px;
  min-width: 0;
  aspect-ratio: 1206 / 2622;
  border-radius: 32px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 44ch;
}

.feature-text-wide {
  gap: 20px;
  max-width: 46ch;
}

.feature-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.feature-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.subfeature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subfeature h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.subfeature p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.principles {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
}

.principle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.principle svg {
  flex: none;
  margin-top: 1px;
}

.principle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.principle-text h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.principle-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.status-section {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.status-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.status-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-note {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Prose pages (privacy.html) ===== */

.doc {
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.doc h1 {
  font-size: 2rem;
  margin: 8px 0 20px;
}

.doc h2 {
  font-size: 1.1rem;
  margin: 32px 0 8px;
}

.doc p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 4px;
}

.doc-intro {
  color: var(--text);
}

.doc-contact {
  margin-top: 32px;
}

.doc-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ===== Shared place page (p.html) ===== */

.place-page {
  font-size: 17px;
}

.place-page a,
.place-page button {
  transition: background-color 0.15s, border-color 0.15s;
}

.place-page a:focus-visible,
.place-page button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.account-page a:focus-visible,
.account-page button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sp-link {
  color: var(--link);
  text-decoration: none;
}

.sp-link:hover {
  text-decoration: underline;
}

.sp-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
}

.sp-wordmark {
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.sp-wordmark-mark {
  width: 24px;
  height: 24px;
  margin: 2px 1px 0;
}

.sp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sp-share-btn svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.sp-share-label {
  display: none;
}

.sp-mapwrap {
  position: relative;
  height: 300px;
  background: var(--border);
}

#sp-map {
  width: 100%;
  height: 100%;
}

.sp-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sp-sheet {
  position: relative;
  margin-top: -22px;
  background: var(--surface1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sp-name-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sp-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.sp-chip-category {
  gap: 6px;
  padding: 0 12px 0 9px;
  border: 1.5px solid currentColor;
  color: var(--text);
}

.sp-chip-category svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.sp-chip-tag {
  padding: 0 12px;
  color: #fdfcf8;
}

.sp-address-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sp-address {
  flex: 1;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sp-address-extra {
  color: var(--text-faint);
  font-size: 15px;
  margin-top: 2px;
}

.sp-copy-btn {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sp-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.sp-btn-maps {
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.sp-btn-maps svg {
  width: 18px;
  height: 18px;
}

.sp-rest {
  padding: 0 20px;
}

.sp-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 20px -20px 0;
  padding: 0 20px;
}

.sp-photo {
  position: relative;
  flex: none;
  width: 150px;
  height: 150px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  border: 0;
  padding: 0;
}

.sp-photo-badge {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 23, 18, 0.7);
  color: #fdfcf8;
  font-size: 13px;
  font-weight: 600;
}

.sp-section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 26px 4px 8px;
}

.sp-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.sp-notes-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-stars {
  display: flex;
  gap: 3px;
}

.sp-stars svg {
  width: 20px;
  height: 20px;
}

.sp-notes-text {
  font-size: 17px;
  line-height: 1.45;
}

.sp-contact-card {
  overflow: hidden;
}

.sp-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.sp-contact-row:first-child {
  border-top: 0;
}

.sp-contact-glyph {
  display: block;
  flex: none;
  width: 22px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.sp-contact-label {
  display: none;
}

.sp-contact-value {
  flex: 1;
  font-size: 17px;
  color: var(--text);
}

.sp-contact-chevron {
  display: block;
  flex: none;
  color: var(--text-faint);
}

.sp-contact-chevron svg {
  width: 8px;
  height: 13px;
}

.sp-spacer {
  display: none;
}

.sp-sharedby {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 20px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.sp-avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-appcard {
  margin: 20px 20px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sp-appcard-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 32ch;
}

.sp-appcard-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.sp-btn-outline-teal,
.sp-btn-outline-border {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.sp-btn-outline-teal {
  border: 1.5px solid var(--teal);
  color: var(--teal);
}

.sp-btn-outline-border {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.sp-app-label-desktop {
  display: none;
}

.sp-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 36px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Skeleton */

.sp-skel {
  background: var(--border);
  border-radius: 8px;
  animation: sp-pulse 1.4s ease-in-out infinite;
}

@keyframes sp-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

/* Unavailable / error state */

.sp-unavailable {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
}

.sp-unavailable-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 12px;
}

.sp-unavailable-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-faint);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.sp-unavailable-icon svg {
  width: 26px;
  height: 26px;
}

.sp-unavailable-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sp-unavailable-text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 30ch;
}

.sp-unavailable-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-faint);
  text-align: center;
}

.sp-unavailable-footer .sp-link {
  font-weight: 600;
}

.sp-unavailable-retry {
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

/* Photo viewer */

.sp-viewer {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 23, 18, 0.94);
}

.sp-viewer::backdrop {
  background: rgba(26, 23, 18, 0.94);
}

.sp-viewer-figure {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-viewer img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}

.sp-viewer-close,
.sp-viewer-prev,
.sp-viewer-next {
  position: absolute;
  border: 0;
  background: rgba(253, 252, 248, 0.12);
  color: #fdfcf8;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp-viewer-close svg,
.sp-viewer-prev svg,
.sp-viewer-next svg {
  width: 20px;
  height: 20px;
}

.sp-viewer-close {
  top: 16px;
  right: 16px;
}

.sp-viewer-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.sp-viewer-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Map pin (fixed colors, independent of theme, for legibility over the map) */

.sp-pin {
  position: relative;
  width: 52px;
  height: 62px;
}

.sp-pin-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fdfcf8;
  box-shadow: 0 4px 12px rgba(26, 23, 18, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-pin-circle svg {
  width: 24px;
  height: 24px;
}

.sp-pin-tail {
  position: absolute;
  left: 19px;
  top: 49px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #fdfcf8;
}

.sp-pin-badge svg {
  width: 13px;
  height: 13px;
}

.sp-pin-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a1712;
  border: 2px solid #fdfcf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop layout, >= 900px */

@media (min-width: 900px) {
  .sp-shell {
    display: grid;
    grid-template-columns: minmax(400px, 460px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "header map" "panel map";
    height: 100vh;
    min-height: 0;
  }

  .sp-header {
    grid-area: header;
    padding: 20px 28px 8px;
  }

  .sp-share-btn {
    width: auto;
    height: 36px;
    margin-right: 0;
    padding: 0 14px 0 12px;
    border: 1px solid var(--border);
    background: var(--surface1);
  }

  .sp-share-btn svg {
    width: 17px;
    height: 17px;
  }

  .sp-share-label {
    display: block;
  }

  .sp-mapwrap {
    grid-area: map;
    height: auto;
  }

  .sp-panel {
    grid-area: panel;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    padding: 0 28px 32px;
    gap: 22px;
  }

  .sp-sheet,
  .sp-rest {
    display: contents;
  }

  .sp-address-block {
    margin-top: 0;
  }

  .sp-copy-btn {
    background: var(--surface1);
  }

  .sp-copy-btn:hover {
    border-color: var(--teal);
  }

  .sp-directions {
    margin-top: 0;
  }

  .sp-btn-maps {
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }

  .sp-btn-maps svg {
    width: 17px;
    height: 17px;
  }

  .sp-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .sp-photo {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
  }

  .sp-photo:nth-child(n + 4) {
    display: none;
  }

  .sp-photo-badge {
    display: block;
  }

  .sp-section-label {
    margin: 0 4px 8px;
  }

  .sp-stars svg {
    width: 18px;
    height: 18px;
  }

  .sp-notes-text {
    font-size: 16px;
    line-height: 1.5;
  }

  .sp-contact-row {
    min-height: 46px;
  }

  .sp-contact-row:hover {
    background: var(--bg);
  }

  .sp-contact-glyph {
    display: none;
  }

  .sp-contact-label {
    display: block;
    flex: none;
    width: 48px;
    color: var(--text-faint);
    font-size: 14px;
  }

  .sp-contact-value {
    color: var(--teal);
  }

  .sp-contact-chevron {
    display: none;
  }

  .sp-spacer {
    display: block;
    flex: 1;
  }

  .sp-sharedby {
    justify-content: flex-start;
    margin: 0;
  }

  .sp-appcard {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    align-items: stretch;
    text-align: left;
  }

  .sp-appcard-text {
    max-width: none;
  }

  .sp-btn-outline-teal,
  .sp-btn-outline-border {
    height: 40px;
    border-radius: 10px;
  }

  .sp-app-label-mobile {
    display: none;
  }

  .sp-app-label-desktop {
    display: inline;
  }

  .sp-footer {
    justify-content: flex-start;
    margin-top: 0;
    padding-bottom: 0;
  }
}

/* ===== Account pages (reset-password.html, email-confirmed.html) ===== */

[hidden] {
  display: none !important;
}

.account-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.account-header {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.account-brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.account-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.account-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account-loading {
  font-size: 15px;
  color: var(--text-faint);
}

.account-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.account-head h1:focus {
  outline: none;
}

.account-head p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.account-email {
  color: var(--text);
  font-weight: 600;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-input-wrap {
  position: relative;
}

.account-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.account-field input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.account-input-wrap input {
  padding-right: 64px;
}

.account-show-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.account-show-toggle:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.account-hint {
  font-size: 13px;
  color: var(--text-faint);
}

.account-hint.is-error {
  color: var(--error);
}

.account-error {
  font-size: 13px;
  color: var(--error);
}

.account-field.has-error input {
  border-color: var(--error);
}

.account-form-error {
  font-size: 13px;
  color: var(--error);
}

.account-submit {
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: var(--onteal);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.account-submit:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.account-result {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-icon.is-success {
  background: color-mix(in oklab, var(--teal) 16%, transparent);
}

.account-icon.is-expired {
  background: var(--bg);
}

.account-open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-btn {
  height: 50px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--onteal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.account-btn:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.account-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 0;
  text-align: center;
}

.account-footer {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== 404.html (shares the account pages' header/footer shell) ===== */

.notfound-content {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.notfound-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notfound-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notfound-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-faint);
}

.notfound-text h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

.notfound-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}
