/* Base reset + typography + layout primitives. Matches the iOS/mini-app feel:
   system font, cream canvas, centered narrow content column. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: header + main(grow) + footer fill at least the viewport, so
     the footer rests at the bottom edge instead of floating mid-screen on short
     pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* main grows to absorb the slack, pushing the footer down to the bottom */
main {
  flex: 1 0 auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* centered content column shared by every screen */
.screen {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--screen-h) 40px;
}

/* wider centered column, e.g. the plan grid on desktop */
.screen-wide {
  max-width: var(--wide-max);
}

/* full-bleed site header/footer bars with a centered inner row */
/* header wears a deep, saturated brand green; both ends stay rich so wide
   screens never wash out to a pale tint on the right */
/* solid deep brand green (#18312d = --accent, matches the logo tile) */
.site-header {
  background: var(--accent);
  border-bottom: 1px solid rgba(252, 246, 237, 0.14);
}

.site-header-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 12px var(--screen-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* cream wordmark (matches the "SN" letters inside the logo) so it reads on the
   dark header instead of blending in */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--bg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* nav links on the saturated header: crisp cream, with a slightly dimmer tier
   for muted links (kept bright enough not to look washed out) */
.site-nav a {
  color: #f7f2e9;
}

.site-nav a.muted {
  color: rgba(247, 242, 233, 0.72);
}

/* primary action gets an outlined pill so the CTA still stands out on the bar */
.site-nav .site-cta {
  padding: 7px 15px;
  border: 1px solid rgba(252, 246, 237, 0.55);
  border-radius: var(--r-pill);
  color: #fff;
}

.site-nav .site-cta:hover {
  background: rgba(252, 246, 237, 0.1);
}

.site-footer {
  border-top: 1px solid var(--line);
  /* the flex parent + main(flex:1) already push the footer to the bottom */
  margin-top: 0;
}

.site-footer-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 16px var(--screen-h);
  text-align: center;
  color: var(--sub);
  font-size: 12.5px;
}

/* vertical stack with even spacing */
.stack > * + * {
  margin-top: 10px;
}

.screen-title {
  font-size: 22px;
  font-weight: 800;
  margin: 22px 0 14px;
}

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

.center {
  text-align: center;
}

/* brand emblem tile (SN), gradient accent -> accent-end */
.emblem {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  box-shadow: 0 8px 18px rgba(24, 49, 45, 0.28);
}

/* small header variant of the brand emblem. It sits on the same green as the
   logo, so a cream ring + lift keeps the mark defined against the bar. */
.emblem-sm {
  width: 38px;
  height: 38px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px rgba(252, 246, 237, 0.92), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* hero emoji tile */
.hero-emoji {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 46px;
  background: var(--chip-bg);
}
