/* Saram site: turmeric band on top, the app and its printed bill shown as objects, plain reading pages below. */
:root {
  --ink: #17160F;
  --turmeric: #FFC21A;
  --cream: #FFF1C4;
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --muted: #55534A;
  --line: #CFCDC2;
  --chilli: #B3261E;
  --font: "Anek Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Top bar */
header.top { background: var(--turmeric); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
header.top img { height: 52px; width: auto; }
header.top nav { display: flex; gap: 20px; }
header.top nav a { font-weight: 700; text-decoration: none; }
header.top nav a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--turmeric); border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-block: 28px 0; }
.hero-text { padding-bottom: 48px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.hero .ta { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; font-weight: 700; margin: 0 0 18px; }
.hero p.lead { margin: 0 0 22px; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 16px; background: var(--turmeric); }

.stage { position: relative; justify-self: center; width: min(100%, 360px); padding-bottom: 0; }
.stage .phone { width: 78%; margin-bottom: -40px; }
.stage .paper { position: absolute; right: 0; bottom: 70px; width: 56%; transform: rotate(-3deg); }

/* The phone and the printed bill as objects */
.phone { border: 9px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px rgba(23, 22, 15, .22); }
.paper {
  background: var(--paper);
  padding: 10px 10px 18px;
  box-shadow: 0 10px 28px rgba(23, 22, 15, .22);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

/* Sections */
section.block { padding-block: 56px; }
section.block h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
section.block .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps .phone { width: min(100%, 260px); }
.steps h3 { font-size: 21px; line-height: 1.3; margin: 0 0 4px; font-weight: 800; display: flex; gap: 10px; align-items: baseline; }
.steps h3::before { counter-increment: step; content: counter(step); flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--turmeric); border: 2px solid var(--ink); font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

.bills-band { background: var(--cream); }
.bills { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 32px; justify-content: start; }
.bills figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bills figcaption { font-weight: 800; font-size: 18px; }
.bills .paper { padding: 8px 8px 16px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; margin: 0; }
.features div { border-top: 2px solid var(--ink); padding-block: 14px 18px; }
.features dt { font-weight: 800; font-size: 19px; }
.features dd { margin: 2px 0 0; color: var(--muted); font-size: 17px; }

.privacy-band { background: var(--ink); color: var(--white); }
.privacy-band h2 { color: var(--turmeric); }
.privacy-band p { max-width: 40em; margin: 0 0 14px; }
.privacy-band a { color: var(--white); font-weight: 700; }

.contact { padding-block: 40px 8px; }
.contact p { margin: 0; }

/* Reading pages (privacy policy) */
main.page { padding-block: 28px 48px; }
main.page h1 { font-size: 36px; line-height: 1.2; margin: 8px 0 6px; font-weight: 800; }
main.page h2 { font-size: 24px; line-height: 1.25; margin: 34px 0 8px; font-weight: 800; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
code { font-size: .9em; background: var(--cream); padding: 1px 5px; border-radius: 4px; }
.note { background: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.note p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 16px; }

footer { border-top: 1px solid var(--line); margin-top: 32px; }
footer .wrap { padding-block: 20px 32px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-text { padding-bottom: 8px; }
  .stage { width: min(100%, 320px); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps .phone { width: min(78%, 260px); }
  .bills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  section.block { padding-block: 44px; }
}
