/* Sungila LLC website. One stylesheet for every page.
   Layout: a centered column (max 1120px) with a 16px+ side gutter; sections stack, cards and feature grids wrap to
   one column on phones. Colors come from the two app icons: Sungila brick and Mileage Button teal. */
:root {
  --bg: #f7f6f4;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b625c;
  --line: #e7e1dc;
  --brick: #b7472a;          /* Sungila */
  --brick-deep: #8f3519;
  --brick-soft: #f6e5de;
  --teal: #018591;           /* Mileage Button */
  --teal-soft: #dcf0f1;
  --ok: #1e7a3c;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110; --surface: #1d1917; --ink: #f2ece7; --muted: #a89c94; --line: #322b27;
    --brick: #e2714f; --brick-deep: #f0956f; --brick-soft: #3a211a;
    --teal: #3cbfca; --teal-soft: #143235; --ok: #6fd08f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .9em; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); }
.eyebrow.teal { color: var(--teal); }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 32px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 64px); }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero-copy { display: grid; gap: 20px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The "ticket": a small estimate that shows what Sungila makes, using the app's real numbering. */
.ticket {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(60, 30, 15, .35); padding: 22px 24px; display: grid; gap: 14px; min-width: 0;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ticket-head .mono { color: var(--brick); font-weight: 500; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.ticket-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-total { display: flex; justify-content: space-between; font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--body); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 6px 10px; border-radius: 999px; justify-self: start; }
.schedule { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.schedule div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 15px/1 var(--body);
  padding: 13px 18px; border-radius: 12px; background: var(--brick); color: #fff; border: 0; cursor: pointer;
}
.btn:hover { color: #fff; background: var(--brick-deep); }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: color-mix(in srgb, var(--teal) 82%, black); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); color: var(--ink); }
.note { font-size: 14px; color: var(--muted); }

/* App cards on the home page */
.apps { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
}
.app-card .shot { aspect-ratio: 4 / 3; background: var(--brick-soft); display: grid; place-items: end center; overflow: hidden; }
.app-card.teal .shot { background: var(--teal-soft); }
.app-card .shot img { width: 86%; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px -12px rgba(0,0,0,.25); }
.app-card.teal .shot img { width: 46%; }
.app-card .body { padding: 22px 24px 26px; display: grid; gap: 12px; align-content: start; }
.app-title { display: flex; align-items: center; gap: 12px; }
.app-title img { width: 44px; height: 44px; border-radius: 11px; }
.app-title small { display: block; color: var(--muted); font: 500 14px/1.3 var(--body); }

/* Feature grid */
.features { display: grid; gap: 28px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .tag { font: 500 12px/1 var(--mono); color: var(--brick); }
.teal-page .feature .tag { color: var(--teal); }

/* Screenshot rows */
.shots { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .shots.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; display: grid; gap: 10px; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.plan.featured { border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }
.teal-page .plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.price { font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.price small { font: 500 15px/1 var(--body); color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 15px; }

/* Legal and help documents */
.doc { max-width: 760px; padding-block: 48px 72px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 18px; }
.doc h3 { font-size: 18px; margin-top: 8px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .callout { background: var(--brick-soft); border-radius: 12px; padding: 14px 16px; }
.teal-page .doc .callout { background: var(--teal-soft); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Contact form */
.form { display: grid; gap: 14px; max-width: 560px; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .trap { position: absolute; left: -9999px; }
.form-status { font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--brick); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer h4 { margin: 0 0 8px; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.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(--ink); }
.site-footer address { font-style: normal; }

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

/* Anchored sections (#pricing, #plans) land below the sticky header. */
[id] { scroll-margin-top: 84px; }

/* Text beside one picture (Sungila sketches). */
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.framed { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(60, 30, 15, .35); max-height: 680px; width: auto; justify-self: center; }
