/* Grihaz site — shared styles
   Brand: cream paper, Georgia serif, gold brackets, saffron actions (matches the app). */

:root {
  --paper: #F5F0E8;
  --paper-deep: #EDE4D6;
  --ink: #2B2320;
  --muted: #6F6158;
  --gold: #C9A96E;
  --saffron: #C8582A;
  --saffron-dark: #A9461E;
  --present: #3F7A55;
  --rule: #DCCFBC;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 38rem;
  --page: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--saffron-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: var(--saffron);
  color: #fff;
  border: 2px solid var(--saffron);
}

.btn:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--saffron-dark);
}

.btn-quiet:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--saffron-dark); }

/* ---------- Gold corner brackets (brand device) ---------- */

.bracketed {
  position: relative;
  padding: 2rem;
}

.bracketed::before,
.bracketed::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
}

.bracketed::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.bracketed::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

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

.hero {
  padding: 3rem 0 4.5rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-weight: normal;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.hero .lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The attendance card: matches the app's home screen */

.day-card {
  font-family: var(--sans);
  background: #FBF1E8;
  border: 1px solid var(--rule);
  border-radius: 22px;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(43, 35, 32, 0.45);
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.app-brand { font-weight: 700; font-size: 1rem; color: var(--ink); }
.app-brand .ga { color: var(--saffron); margin-right: 0.15rem; }
.app-home { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.app-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.app-date .date { font-weight: 700; font-size: 1.05rem; }

.app-date .count {
  background: #F6D9CB;
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.att {
  margin: 0 0.75rem 0.75rem;
  background: #FDF6EF;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.att-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.att-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6E5E;
}

.save {
  background: #E5632B;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.staff-row {
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.staff-row:last-child { border-bottom: 0; }

.avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #F6DCCD;
  color: #D9673A;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.staff-row .who { text-align: center; }
.staff-row .name { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.staff-row .role { color: var(--muted); font-size: 0.75rem; line-height: 1.3; }

.marks { display: flex; gap: 0.3rem; }

.mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.mark.p  { background: #E7F1E8; color: #3F7A55; }
.mark.ap { background: #FBEEDC; color: #B5651D; }
.mark.a  { background: #FBE4E1; color: #C0392B; }

.mark.p.on  { background: #2F7A4D; color: #fff; }
.mark.ap.on { background: #B8650F; color: #fff; }
.mark.a.on  { background: #B8372B; color: #fff; }

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-weight: normal;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section .intro {
  max-width: var(--measure);
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 3rem;
  margin: 0;
}

.features dt {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.features dd {
  margin: 0;
  color: var(--muted);
  max-width: 30rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--saffron-dark);
}

.steps strong { font-weight: normal; font-size: 1.15rem; display: block; }

.note {
  max-width: var(--measure);
  background: var(--paper-deep);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  margin-top: 2rem;
}

.closing {
  text-align: center;
}

.closing .bracketed {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.closing p { color: var(--muted); margin: 0 0 1.75rem; }

/* ---------- Feature sections with screenshot carousels ---------- */

.section-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
  padding: 3.5rem 0 1rem;
}

.feature .wrap {
  display: grid;
  gap: 2rem;
}

.feature-text { max-width: var(--measure); }
.feature-text p { color: var(--muted); margin: 0; }

.carousel {
  width: 100%;
  max-width: 17rem;
  margin: 0 auto;
}

.shots {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.5rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.shots::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 0.6rem;
  scroll-snap-align: center;
}

.shot figcaption { text-align: center; }

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dots button[aria-current="true"] { background: var(--saffron); border-color: var(--saffron); }

.phone {
  aspect-ratio: 600 / 1226;
  border-radius: 1.6rem;
  border: 6px solid #2B2320;
  background: var(--paper-deep);
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(43, 35, 32, 0.55);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0.85rem;
  color: var(--ink);
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal h1 {
  font-weight: normal;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }

.legal h2 {
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
}

.legal h3 {
  font-weight: normal;
  font-style: italic;
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }

.legal .summary {
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.legal .summary p { margin: 0; }

/* ---------- Wider screens ---------- */

@media (min-width: 52rem) {
  .hero { padding: 4.5rem 0 6rem; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .section { padding: 5.5rem 0; }
  .feature .wrap { grid-template-columns: 1fr 19rem; gap: 4rem; align-items: center; }
  .feature-text { max-width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
