/* HoneyList website. Colors are the app's Mint palette (Familist/Views/Components/Theme.swift,
   Familist/Models/AccentPalette.swift), light and dark. */

:root {
  --background: #ffffff;
  --surface: #e4eeeb;
  --hairline: #d6e2df;
  --accent-fill: #34c77b;
  --on-accent: #141414;
  --accent-ink: #20784a;
  --text: #111214;
  --text-secondary: #5f6168;
  --frame: rgba(17, 18, 20, 0.12);

  --radius: 16px;
  --wrap: 1080px;
  --prose: 680px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1012;
    --surface: #1d2725;
    --hairline: #273130;
    --accent-ink: #34c77b;
    --text: #f4f4f5;
    --text-secondary: #a6a8ae;
    --frame: rgba(244, 244, 245, 0.16);
  }
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}

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

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

/* Never hyphenate addresses: a copied "honeylist.-support@…" would be wrong. */
a[href^="mailto:"],
a[href^="http"],
code {
  hyphens: none;
  overflow-wrap: anywhere;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  hyphens: manual;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 12px;
  background: var(--accent-fill);
  color: var(--on-accent);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent-ink);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--hairline);
  padding: 32px 0 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
}

.footer-nav,
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a,
.languages a {
  color: var(--text-secondary);
}

.languages a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.copyright {
  margin: 0;
}

/* Home */

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.hero__icon {
  display: block;
  border-radius: 22px;
  margin-bottom: 20px;
}

.lead {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.store-badge {
  display: inline-block;
  margin-top: 8px;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 72px;
}

.feature__text p {
  margin: 0 0 12px;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.points li {
  position: relative;
  padding-left: 28px;
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--accent-fill);
}

.points + p {
  margin-top: 16px;
}

.note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.phone {
  margin: 0 auto;
  width: 100%;
  max-width: 330px;
  padding: 10px;
  border-radius: 46px;
  background: var(--frame);
  justify-self: center;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.phone--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 330 / 717;
  background: var(--surface);
  border: 10px solid var(--frame);
  padding: 0;
}

.phone--placeholder img {
  width: 96px;
  border-radius: 22px;
}

.plans {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.plan {
  background: var(--background);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}

.plan h3 {
  margin: 0 0 8px;
}

.plan p {
  margin: 0 0 8px;
}

.plan--pro {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.panel {
  background: var(--surface);
  border-radius: calc(var(--radius) + 8px);
  padding: 32px 24px;
  margin-top: 72px;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding-top: 72px;
  }

  .feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    padding-top: 96px;
  }

  .feature--reverse .phone {
    order: 2;
  }

  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    padding: 48px;
  }
}

/* Text pages */

.prose {
  max-width: var(--prose);
  padding-top: 48px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose .meta {
  color: var(--text-secondary);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.plain-list {
  list-style: none;
  padding: 0 !important;
}

.contact {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0 8px;
}

.contact p {
  margin: 0 0 8px;
}

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

.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-ink);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding: 0 0 16px;
}

.faq details > div p {
  margin: 0 0 10px;
}

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