/* Somma — site styles
   Palette pulled from the app: parchment background, aubergine ink,
   red chai accent, cinnamon/masala warm supports. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #2d1b2e;
  --ink-soft: #4a3a4a;
  --wine: #632626;
  --wine-dark: #4a1c1c;
  --masala: #9d5353;
  --cinnamon: #bf8b67;
  --cardamom: #dbcb96;
  --parchment: #faf3e6;
  --parchment-deep: #f2e6d0;
  --paper: #fffdf9;
  --line: rgba(45, 27, 46, 0.12);
  --shadow: 0 30px 60px -25px rgba(45, 27, 46, 0.35);
  --shadow-soft: 0 12px 30px -15px rgba(45, 27, 46, 0.25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle paper grain so the background isn't flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(45, 27, 46, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */

.site-nav {
  position: relative;
  z-index: 5;
  padding: 28px 0 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(45, 27, 46, 0.06);
  color: var(--ink);
}

.nav-links a.current {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  background: var(--wine) !important;
  color: var(--paper) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--wine-dark) !important;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--wine);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -14px rgba(74, 28, 28, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--wine);
  color: var(--wine);
}

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

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--wine);
}

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone {
  position: relative;
  width: 260px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--ink);
  transform: rotate(3deg);
  background: var(--ink);
}

.phone img { width: 100%; display: block; }

.phone-tag {
  position: absolute;
  bottom: -18px;
  left: -42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  transform: rotate(-4deg);
  max-width: 190px;
  z-index: 3;
}

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cardamom), transparent 70%);
  opacity: 0.9;
  top: -60px;
  right: -60px;
  z-index: 0;
  filter: blur(2px);
}

/* ---------- Section scaffolding ---------- */

section {
  position: relative;
  z-index: 1;
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Feature grid ---------- */

.features {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.feature {
  background: var(--paper);
  padding: 40px 38px;
}

.feature .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cinnamon);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: block;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Showcase (screenshots) ---------- */

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 30px;
}

.showcase-item {
  position: relative;
}

.showcase-item .frame {
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-soft);
  background: var(--ink);
}

.showcase-item:nth-child(2) { transform: translateY(26px); }
.showcase-item:nth-child(4) { transform: translateY(14px); }

.showcase-item p {
  margin: 16px 4px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Philosophy / why I built this ---------- */

.philosophy {
  background: var(--ink);
  color: var(--parchment);
  border-radius: 28px;
  margin: 0 32px;
  padding: 72px;
  position: relative;
  overflow: hidden;
}

.philosophy::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wine), transparent 70%);
  opacity: 0.5;
  bottom: -220px;
  right: -140px;
}

.philosophy-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.philosophy .eyebrow { color: var(--cardamom); }

.philosophy h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--paper);
}

.philosophy .body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(250, 243, 230, 0.88);
}

.philosophy .body p { margin: 0 0 20px; }
.philosophy .body p:last-child { margin-bottom: 0; }

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--cardamom);
  margin-top: 24px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 100px 0 110px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 20px;
  color: var(--ink);
}

.cta-band p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 34px;
}

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

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left img { width: 22px; height: 22px; }

.footer-left span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14.5px;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--wine); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover { border-color: var(--wine); color: var(--wine); }

.footer-fine {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------- Simple pages (download / privacy) ---------- */

.page-hero {
  padding: 64px 0 20px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  margin: 0 0 18px;
  line-height: 1.02;
}

.page-hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.download-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.download-card h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 12px;
}

.download-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--parchment-deep);
  color: var(--wine);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.beta-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.download-steps .step {
  padding: 0;
}

.download-steps .step .n {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--cinnamon);
  display: block;
  margin-bottom: 12px;
}

.download-steps .step h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
}

.download-steps .step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Legal / privacy ---------- */

.legal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px;
}

.legal .updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 14px;
  color: var(--ink);
}

.legal h2:first-of-type { margin-top: 0; }

.legal p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; }

.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.legal li { margin-bottom: 8px; font-size: 16px; }

.legal strong { color: var(--ink); }

.legal a { color: var(--wine); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 20px; }
  .phone { width: 200px; transform: rotate(2deg); }
  .phone-tag { display: none; }
  .feature-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .showcase-strip { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(4) { transform: none; }
  .philosophy { margin: 0 16px; padding: 44px 28px; border-radius: 22px; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 28px; }
  .download-card { grid-template-columns: 1fr; text-align: left; padding: 36px; }
  .download-steps { grid-template-columns: 1fr; }
  .legal { padding: 32px 24px; }
  .wrap { padding: 0 20px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-nav .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-links { font-size: 14px; gap: 2px; }
  .nav-links a { padding: 6px 10px; }
  .hero { padding-top: 44px; }
  .philosophy { padding: 36px 20px; }
}
