/* Postal Agent Diary website. Brand colours from the app's diary-blue
   palette (lib/app/theme/brand_colors.dart). No external requests: the
   fonts are the app's own Roboto files, so visiting the site sends
   nothing anywhere. */

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand */
  --blue: #0756b8;
  --navy: #083b80;
  --bright: #0875e1;
  --yellow: #ffd21a;
  --green: #80d900;
  --on-blue: #ffffff;
  --on-yellow: #142d50;

  /* Surfaces and text */
  --bg: #f4f8ff;
  --bg-alt: #e8f0fc;
  --card: #ffffff;
  --ink: #142d50;
  --muted: #5b6a82;
  --line: #d6e2f5;
  --link: #0756b8;
  --tick: #1f8a3b;
  --hero-from: #083b80;
  --hero-to: #0875e1;
  --shadow: 0 12px 32px rgba(8, 59, 128, 0.12);

  --radius: 18px;
  --radius-s: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1626;
    --bg-alt: #0f1d33;
    --card: #1a2a42;
    --ink: #eaf1fc;
    --muted: #a9b8cf;
    --line: #2a3d5c;
    --link: #7fb6ff;
    --tick: #9be22d;
    --hero-from: #06264f;
    --hero-to: #0756b8;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--link);
}

a:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 8px 14px;
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy);
  color: var(--on-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

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

.brand img {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #dbe8ff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 16px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--on-blue);
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a.nav-cta {
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  margin-left: 6px;
}

.site-nav a.nav-cta:hover {
  background: #ffe066;
}

@media (max-width: 760px) {
  .site-nav .hide-small {
    display: none;
  }
}

/* ---- Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.button:hover {
  background: #ffe066;
}

.button.ghost {
  background: transparent;
  color: var(--on-blue);
  border-color: rgba(255, 255, 255, 0.5);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button.blue {
  background: var(--blue);
  color: var(--on-blue);
}

.button.blue:hover {
  background: var(--navy);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  line-height: 1.15;
}

.play-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.play-badge small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.play-badge strong {
  font-size: 19px;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 210, 26, 0.18), transparent 40%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--on-blue);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--yellow);
}

.hero .lead {
  font-size: 19px;
  color: #dbe8ff;
  max-width: 34em;
  margin: 0 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.soon {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: #dbe8ff;
}

.hero .fine {
  margin-top: 18px;
  font-size: 15px;
  color: #c3d6f5;
}

.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 80vw);
}

.phone img,
.shot img {
  display: block;
  width: 100%;
  border-radius: 30px;
  border: 8px solid #0b1626;
  background: #0b1626;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero .phone::before {
  content: "";
  position: absolute;
  inset: 12% -18% -6% -18%;
  background: radial-gradient(circle, rgba(255, 210, 26, 0.35), transparent 65%);
  z-index: -1;
}

.hero .phone {
  z-index: 0;
}

/* ---- Trust strip --------------------------------------------------------- */

.trust {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-weight: 700;
  font-size: 15px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex: none;
}

@media (prefers-color-scheme: dark) {
  .trust svg {
    color: var(--yellow);
  }
}

/* ---- Sections ---------------------------------------------------------- */

section.block {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--yellow);
  }
}

/* Feature rows: text beside a screenshot, alternating sides. */

.feature {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
  padding: 36px 0;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature.flip {
  grid-template-columns: 300px 1fr;
}

.feature.flip .shot {
  order: -1;
}

.feature h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.feature p {
  color: var(--muted);
  font-size: 18px;
}

.shot {
  margin: 0;
  justify-self: center;
  width: min(300px, 78vw);
}

.shot-pair {
  display: flex;
  gap: 16px;
  justify-self: center;
}

.shot-pair .shot {
  width: min(220px, 40vw);
}

.feature.wide {
  grid-template-columns: 1fr 456px;
}

.feature.wide.flip {
  grid-template-columns: 456px 1fr;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  margin: 10px 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tick)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Cards and steps. */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .badge-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--blue);
  margin-bottom: 16px;
}

.card .badge-icon svg {
  width: 26px;
  height: 26px;
}

@media (prefers-color-scheme: dark) {
  .card .badge-icon {
    color: var(--yellow);
  }
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.more-link {
  text-align: center;
  margin: 32px 0 0;
  font-weight: 700;
}

/* ---- Pricing ----------------------------------------------------------- */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.price {
  position: relative;
  text-align: left;
}

.price.best {
  border: 2px solid var(--blue);
}

@media (prefers-color-scheme: dark) {
  .price.best {
    border-color: var(--yellow);
  }
}

.price .tag {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.price .amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 0;
}

.price .amount span {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
}

.price .ticks {
  margin-bottom: 0;
}

.price-note {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 15px;
}

/* ---- FAQ --------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--link);
}

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

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ---- Closing call to action ---------------------------------------------- */

.closing {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--on-blue);
  text-align: center;
  padding: 72px 0;
}

.closing h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.closing p {
  color: #dbe8ff;
  font-size: 18px;
}

.closing .cta {
  justify-content: center;
  margin: 24px 0 8px;
}

.closing a:not(.button):not(.play-badge) {
  color: var(--yellow);
}

/* ---- Placeholders and notices ---------------------------------------------- */

.notice {
  background: var(--card);
  border-left: 4px solid var(--yellow);
  padding: 14px 18px;
  border-radius: 8px;
}

.placeholder {
  background: #fff3b0;
  color: #5c4500;
  padding: 0 6px;
  border-radius: 4px;
}

/* ---- Policy pages ---------------------------------------------------------- */

.doc {
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 820px;
}

.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  color: var(--ink);
}

.doc .updated {
  color: var(--muted);
  margin-top: 0;
}

.doc h2 {
  font-size: 22px;
  margin-top: 36px;
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

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

.site-footer {
  background: var(--navy);
  color: #c3d6f5;
  padding: 40px 0;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #06101e;
  }
}

.site-footer a {
  color: #ffffff;
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer .brand {
  font-size: 17px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer p {
  margin: 14px 0 0;
}

.site-footer .independent {
  max-width: 760px;
}

/* ---- Small screens --------------------------------------------------------- */

@media (max-width: 880px) {
  .hero {
    padding: 44px 0 56px;
  }

  .hero .wrap,
  .feature,
  .feature.flip,
  .feature.wide,
  .feature.wide.flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature.flip .shot,
  .feature.flip .shot-pair {
    order: 0;
  }

  section.block {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav a {
    padding: 8px 9px;
  }
}
