/* ============================================================
   Welsani — marketing site design system
   Built on the app's warm, premium brand:
   cream/parchment grounds, Welsani blue, Inter UI + Newsreader display.
   ============================================================ */

:root {
  /* Grounds */
  --cream: #faf6ec;
  --cream-2: #f4eedd;
  --card: #f1ead6;
  --card-2: #ebe3c9;
  --white: #ffffff;
  --surface: #fafaf6;

  /* Ink */
  --ink: #161616;
  --muted: #6f6a5d;
  --faint: #a39d8c;

  /* Lines */
  --line: rgba(22, 22, 22, 0.08);
  --line-2: rgba(22, 22, 22, 0.14);

  /* Brand */
  --blue: #1e3a8a;
  --blue-dark: #0f1f4d;
  --link: #2e4cb8;

  /* Accent (tweakable) — baked to Forest green */
  --accent: #0d5a40;
  --accent-dark: #063524;
  --accent-soft: #e2efe8;

  /* Status / warm */
  --ok: #0f7a3c;
  --ok-soft: #e3f3e8;
  --gold: #a8741a;
  --gold-soft: #f7ecd6;
  --highlight: rgba(255, 213, 79, 0.55);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--highlight);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
}

.section-pad {
  padding: 96px 0;
}
.section-pad-sm {
  padding: 64px 0;
}

.bg-cream {
  background: var(--cream);
}
.bg-white {
  background: var(--white);
}
.bg-card {
  background: var(--card);
}
.bg-blue {
  background: var(--accent-dark);
  color: #f3f1ea;
}

/* ---------- Type ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  font-weight: 480;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
}
.h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}
.h4 {
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 560;
}

.serif-italic {
  font-style: italic;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bg-blue .eyebrow {
  color: #c7d2ee;
}

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.bg-blue .lead {
  color: #c9cee0;
}

.muted {
  color: var(--muted);
}
.balance {
  text-wrap: balance;
}
.pretty {
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 560;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(22, 22, 22, 0.04);
}
.bg-blue .btn-ghost {
  color: #f3f1ea;
  border-color: rgba(255, 255, 255, 0.28);
}
.bg-blue .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-white {
  background: #fff;
  color: var(--accent-dark);
}
.btn-white:hover {
  background: #f2eee3;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1.04rem;
}

.textlink {
  color: var(--link);
  font-weight: 560;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
}
.textlink .ar {
  transition: transform 0.15s ease;
}
.textlink:hover .ar {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand .name {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.96rem;
  font-weight: 500;
  color: #2c2a24;
  transition: background 0.14s ease;
}
.nav-links a:hover {
  background: rgba(22, 22, 22, 0.05);
}
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switch */
.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.lang button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 11px;
  letter-spacing: 0.04em;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.lang button.on {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg {
  display: block;
}

/* ---------- Eyebrow chip / pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 7px 14px 7px 11px;
  font-size: 0.84rem;
  font-weight: 560;
  color: #3a3730;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card.on-white {
  background: var(--card);
}
.card-soft {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 30px;
}

.feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feat-ico svg {
  width: 23px;
  height: 23px;
}

/* ---------- Outcome rows ---------- */
.outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.outcome.flip .o-text {
  order: 2;
}
.outcome .o-text {
  max-width: 460px;
}
.outcome .o-vis {
  min-width: 0;
}
.o-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Number / steps ---------- */
.step-n {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line-2);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-q .pm {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--accent);
}
.faq-item.open .faq-q .pm {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a-inner {
  padding: 0 44px 26px 4px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent-dark);
  color: #c9cee0;
  padding: 72px 0 40px;
}
.site-footer a {
  color: #c9cee0;
  transition: color 0.12s ease;
}
.site-footer a:hover {
  color: #fff;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-col h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c93ad;
  margin: 0 0 16px;
  font-weight: 600;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.95rem;
}
.foot-brand .name {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.foot-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  color: #8c93ad;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.bg-blue .stat-num {
  color: #fff;
}

/* ---------- Reveal animation (on-load, always ends visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes revealIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* check list */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.price-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1.02rem;
  color: #2c2a24;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%230d5a40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/13px no-repeat;
}
.center {
  text-align: center;
}
.mt-s {
  margin-top: 14px;
}
.mt-m {
  margin-top: 26px;
}
.mt-l {
  margin-top: 44px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* logos / trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
  opacity: 0.9;
}
.trust-strip .t-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-strip svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .outcome {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .outcome.flip .o-text {
    order: 0;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section-pad {
    padding: 72px 0;
  }
}
@media (max-width: 640px) {
  .wrap,
  .wrap-narrow {
    padding: 0 18px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .display {
    font-size: clamp(2.3rem, 9vw, 3rem);
  }
  .section-pad {
    padding: 56px 0;
  }
  .card,
  .card-soft {
    padding: 24px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 76px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}
.hero-vis {
  position: relative;
}
.hero-vis .frame {
  transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
  transform-origin: left center;
}

.hero--centered .hero-grid {
  grid-template-columns: 1fr;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.hero--centered .hero-copy {
  max-width: 760px;
}
.hero--centered .hero-actions {
  justify-content: center;
}
.hero--centered .hero-note {
  justify-content: center;
}
.hero--centered .hero-vis .frame {
  transform: none;
  max-width: 940px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-vis .frame {
    transform: none;
  }
}

/* ---------- Tweaks panel ---------- */
#twPanel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 268px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px -16px rgba(22, 30, 60, 0.34);
  padding: 14px 16px 18px;
  font-family: var(--sans);
  display: none;
}
#twPanel.show {
  display: block;
}
.tw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tw-head span {
  font-weight: 700;
  font-size: 0.98rem;
}
.tw-x {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 7px;
}
.tw-x:hover {
  background: rgba(22, 22, 22, 0.06);
}
.tw-sec {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 16px 0 9px;
}
.tw-swatches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tw-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--ink);
  text-align: left;
}
.tw-sw span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex-shrink: 0;
}
.tw-sw.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.tw-seg,
.tw-radio {
  display: flex;
  gap: 6px;
}
.tw-radio {
  flex-direction: column;
}
.tw-seg button,
.tw-radio button {
  flex: 1;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--ink);
  text-align: left;
}
.tw-seg button {
  text-align: center;
}
.tw-seg button.sel,
.tw-radio button.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 70px 0 auto 0;
  z-index: 55;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px 22px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 13px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-menu a:hover {
  background: rgba(22, 22, 22, 0.05);
}
