/* Palm Day public site (server-rendered pages). Same palette as the app: white base,
   green and brown, the palm-fruit gradient only as an accent. */
:root {
  --ink: #231a12;
  --muted: #7a6b5d;
  --line: #ece4da;
  --paper: #ffffff;
  --surface: #faf7f3;
  --green: #2f6b2b;
  --green-soft: #eef5ea;
  --brown: #6b3a1e;
  --red: #b8321c;
  --fruit-grad: linear-gradient(115deg, #2b130d 0%, #b8321c 55%, #e8761a 80%, #f5b041 100%);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Telugu", "Public Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
html[lang="en"] body { font-family: "Public Sans", "Noto Sans Telugu", system-ui, sans-serif; }
a { color: var(--green); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.s-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.s-page { padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.s-center { text-align: center; }
.s-muted { color: var(--muted); font-size: 0.9rem; display: block; }
.s-fine { color: var(--muted); font-size: 0.75rem; line-height: 1.45; margin: 6px 0 0; }
.s-fine a { color: inherit; }
.s-fine.block { display: block; }
.s-lead { font-size: 1.1rem; color: #4a3d31; max-width: 62ch; }
.s-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--brown); font-weight: 700; font-size: 0.9rem; margin: 0 0 8px; }

/* Header */
.s-header { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.s-header::before { content: ""; display: block; height: 4px; background: var(--fruit-grad); }
.s-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-weight: 800; font-size: 1.2rem; }
.s-brand img { border-radius: 10px; }
.s-header-actions { display: flex; align-items: center; gap: 8px; }
.s-lang { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 999px; }
.s-lang:hover { background: var(--surface); }
.s-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.s-nav::-webkit-scrollbar { display: none; }
.s-nav a { flex: none; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.s-nav a:hover { background: var(--surface); }
.s-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.s-btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.s-btn-fruit { background: var(--fruit-grad); color: #fff; box-shadow: 0 6px 18px rgb(184 50 28 / 0.25); }
.s-btn-ghost { background: var(--paper); color: var(--green); border: 1.5px solid var(--green); }
.s-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

/* Hero */
.s-hero { background: linear-gradient(180deg, #fffaf4 0%, var(--paper) 100%); padding: 32px 0 24px; }
.s-hero-grid { display: grid; gap: 24px; align-items: center; }
/* Two phone frames: home screen in front, AI Ask behind */
.s-phones { position: relative; height: 420px; max-width: 360px; width: 100%; margin: 8px auto 0; }
.s-phone { position: absolute; margin: 0; width: 200px; aspect-ratio: 1 / 2; border-radius: 30px; border: 7px solid #1f140e; background: #1f140e; overflow: hidden; box-shadow: 0 24px 50px rgb(35 26 18 / 0.25); }
.s-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.s-phone.front { left: 0; bottom: 0; z-index: 2; }
.s-phone.back { right: 0; top: 0; transform: rotate(4deg); }
@media (min-width: 860px) {
  .s-hero { padding: 56px 0 48px; }
  .s-hero-grid { grid-template-columns: 1.3fr 1fr; }
  .s-phones { height: 540px; max-width: 440px; margin: 0; justify-self: center; }
  .s-phone { width: 250px; border-radius: 36px; border-width: 8px; }
  .s-phone img { border-radius: 28px; }
}
.s-price-row { display: flex; flex-wrap: wrap; gap: 10px; }
.s-price-pill { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--paper); }
.s-price-pill b { color: var(--brown); font-size: 1.15rem; }
.s-price-pill .s-muted { display: inline; }

/* Sections, cards, grids */
.s-section { padding: 32px 16px; }
.s-section-band { background: var(--surface); padding: 36px 0; }
.s-section { scroll-margin-top: 110px; }
.s-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.s-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .s-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .s-grid { grid-template-columns: repeat(3, 1fr); } .s-grid.two { grid-template-columns: repeat(2, 1fr); } }
.s-feature { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.s-feature h2, .s-feature h3 { margin: 6px 0 0; font-size: 1.1rem; }
.s-feature p { color: #4a3d31; margin: 0; }
.s-feature ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.s-feature li { display: flex; gap: 6px; align-items: flex-start; }
.s-feature li svg { color: var(--green); flex: none; margin-top: 4px; }
.s-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green); text-decoration: none; }
.s-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green); flex: none; }
.s-icon.sm { width: 40px; height: 40px; border-radius: 12px; }
.s-list { display: flex; flex-direction: column; gap: 10px; }
.s-link-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 14px 16px; }
.s-link-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-link-card > svg { color: var(--muted); flex: none; }
.s-link-card.static a { color: var(--ink); text-decoration: none; }
.s-link-card.static a.s-muted { color: var(--green); }
.s-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.u-urgent { background: var(--red); }
.u-act { background: #e0661b; }
.u-watch { background: #e0a21b; }
.s-how { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.s-how li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.s-how span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fruit-grad); color: #fff; font-weight: 800; flex: none; }
.s-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.s-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--paper); }
.s-faq summary { font-weight: 700; cursor: pointer; }
.s-faq p { margin: 8px 0 0; color: #4a3d31; }
.s-cta-band { background: var(--green-soft); padding: 36px 0; text-align: center; }
.s-cta-band p { color: #4a3d31; }

/* Article */
.s-article { max-width: 760px; }
.s-article section h2 { margin-top: 8px; }
.s-steps { padding-left: 1.2em; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.s-warn { background: #fff8f1; border-color: #f3c9a6; }
.s-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.s-crumbs li + li::before { content: "›"; margin-right: 4px; }
.s-crumbs a { color: var(--muted); }
.s-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.s-chips::-webkit-scrollbar { display: none; }
.s-chips a { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.9rem; }

/* Tables */
.s-table-wrap { overflow-x: auto; }
.s-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.s-table th, .s-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.s-table th { font-size: 0.8rem; color: var(--muted); }
.s-table .r { text-align: right; }
.s-table tr.total td { border-bottom: 0; }

/* Prices */
.s-price { display: flex; flex-direction: column; gap: 2px; }
.s-price strong { font-size: 2rem; color: var(--brown); line-height: 1.2; }
.up { color: var(--green); }
.down { color: var(--red); }
.s-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.s-seg { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; margin: 6px 0; flex-wrap: wrap; }
.s-seg a { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.s-seg a[aria-current="true"] { background: var(--paper); color: var(--green); box-shadow: 0 1px 4px rgb(0 0 0 / 0.08); }
.s-chart { width: 100%; height: auto; margin-top: 8px; }
.s-chart .v { font-size: 13px; font-weight: 700; fill: var(--brown); }
.s-chart .a { font-size: 12px; fill: var(--muted); }
.s-news { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.s-news li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-news a { color: var(--ink); font-weight: 600; text-decoration: none; }
.s-news a:hover { color: var(--green); }

/* Calculator */
.s-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.s-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.s-form input[type="number"] { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.s-form fieldset { border: 0; padding: 0; margin: 0; }
.s-form legend { font-weight: 600; margin-bottom: 6px; }
.s-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.s-radios label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.s-result { max-width: 560px; }
.s-big { font-size: 2.2rem; font-weight: 800; color: var(--green); margin: 0 0 8px; }
.s-big small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.s-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.s-footer { background: #1f140e; color: #eadfd3; padding: 40px 0 24px; margin-top: 0; }
.s-footer a { color: #f5d9bd; }
.s-footer .s-brand { color: #fff; }
.s-footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.s-footer-about { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.s-footer-about p { color: #cdbfb1; max-width: 46ch; margin: 0; }
@media (min-width: 860px) { .s-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .s-footer-about { grid-column: auto; } }
.s-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #bfae9c; margin-bottom: 10px; }
.s-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.s-footer ul a { text-decoration: none; color: #eadfd3; }
.s-footer ul a:hover { color: #fff; }
.s-footer-sources { color: #a8998a; font-size: 0.8rem; margin: 28px 0 8px; }
.s-footer-bottom { color: #a8998a; font-size: 0.8rem; margin: 0; }

/* Landing: compact feature tiles */
.s-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .s-tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.s-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.s-tile:hover { border-color: var(--green); }
.s-tile .s-icon { margin-bottom: 6px; }
.s-tile strong { font-size: 1rem; line-height: 1.3; }
.s-tile span:last-child { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.s-hero .s-lead { margin-bottom: 0; }
@media (max-width: 759px) { .s-tile:last-child:nth-child(odd) { grid-column: span 2; } }
