/* SharedHours — marketing site. Static, dependency-free, no build step.
   Warm "ruled-paper + amber" design system. Retune the palette below (esp.
   --accent) to suit the app. */

:root {
  --paper: #f6f0e5;
  --paper-deep: #eae0cf;
  --ink: #24211c;
  --muted: #71695d;
  --rule: #d7c9b0;
  --accent: #f2a72d;
  --white: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Minimal reset (replaces Tailwind preflight from the source project). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgb(242 167 45 / 12%), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(36 33 28 / 12%);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(55 45 29 / 14%);
}

.site-header nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-header nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Typography */
.eyebrow {
  margin: 0 0 18px;
  color: #927124;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-lede,
.section-heading > p:last-child,
.subpage-hero > p,
.support-contact p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

/* Hero */
.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
  padding-block: 90px 110px;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 36px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 9px 20px rgb(36 33 28 / 15%);
}

.button-secondary {
  background: transparent;
}

/* Hero screenshot frame (replaces the source project's note illustration).
   Drop a real screenshot in by swapping the .shot-placeholder block for
   <img class="shot-img" src="hero.png" alt="SharedHours screenshot">. */
.shot-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.shot-shadow {
  position: absolute;
  width: 70%;
  height: 72%;
  border-radius: 50%;
  background: rgb(74 58 33 / 24%);
  filter: blur(50px);
  transform: translate(16px, 42px);
}

.shot-frame {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 1px solid rgb(81 68 47 / 18%);
  border-radius: 42px;
  background: linear-gradient(150deg, #fffdf8, #eee2cf);
  box-shadow:
    0 40px 70px rgb(61 48 27 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
  transform: rotate(2deg);
  display: grid;
  place-items: center;
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.shot-placeholder img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgb(65 44 10 / 20%);
}

.shot-placeholder strong {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.shot-placeholder span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding-block: clamp(100px, 14vw, 170px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 62px;
}

.section-heading > p:last-child {
  max-width: 680px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}

.feature-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgb(36 33 28 / 14%);
  border-radius: 24px;
  background: rgb(255 253 248 / 52%);
}

.feature-card-dark {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-18px);
}

.feature-card p {
  margin: auto 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card-dark p {
  color: #cfc6b7;
}

.feature-number {
  margin-bottom: 54px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
}

/* Secondary highlight band */
.section-rule {
  border-block: 1px solid rgb(36 33 28 / 13%);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 114px,
      rgb(215 201 176 / 48%) 115px,
      transparent 116px
    ),
    rgb(255 253 248 / 34%);
}

.highlight {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.highlight h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.highlight > p:last-child {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

/* Closing */
.closing {
  padding-block: 70px;
  border-top: 1px solid rgb(36 33 28 / 13%);
  background: var(--accent);
}

.closing-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.closing img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 18px 35px rgb(65 44 10 / 22%);
}

.closing h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.closing .eyebrow {
  color: #574113;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  text-underline-offset: 5px;
}

/* Footer */
.site-footer {
  padding-block: 58px;
  color: #d3cbbd;
  background: #171511;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 60px;
  align-items: start;
}

.footer-inner strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.footer-inner p {
  margin: 7px 0 0;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 650;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.78rem;
}

/* Subpages (support, privacy) */
.subpage-hero {
  max-width: 1180px;
  padding-block: 120px 130px;
  border-bottom: 1px solid rgb(36 33 28 / 14%);
}

.subpage-hero h1 {
  max-width: 900px;
}

.subpage-hero > p {
  max-width: 690px;
  margin-bottom: 34px;
}

.updated {
  display: inline-block;
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.support-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  padding-block: 110px 130px;
}

.support-intro {
  position: sticky;
  top: 40px;
  align-self: start;
}

.support-intro h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.support-topic {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid rgb(36 33 28 / 15%);
}

.support-topic:first-child {
  padding-top: 0;
}

.support-topic > span {
  color: #a17b27;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.support-topic h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
}

.support-topic p,
.policy p {
  color: var(--muted);
  line-height: 1.75;
}

.support-contact {
  padding-block: 100px;
  color: var(--white);
  background: var(--ink);
}

.support-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.support-contact h2 {
  max-width: 560px;
}

.support-contact .text-link {
  margin-top: 16px;
  color: var(--accent);
}

/* Privacy policy */
.policy {
  width: min(880px, calc(100% - 48px));
  padding-block: 90px 140px;
}

.policy section {
  padding-block: 42px;
  border-bottom: 1px solid rgb(36 33 28 / 14%);
}

.policy section:last-child {
  border-bottom: 0;
}

.policy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.policy h3 {
  margin: 32px 0 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.policy p {
  font-size: 1.03rem;
}

.policy p + p {
  margin-top: 16px;
}

.policy a {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-table {
  border-top: 1px solid var(--ink);
}

.policy-table > div {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid rgb(36 33 28 / 14%);
}

.policy-table span {
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .shot-stage {
    min-height: 520px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-dark {
    transform: none;
  }

  .support-layout,
  .support-contact-inner {
    grid-template-columns: 1fr;
  }

  .support-intro {
    position: static;
  }

  .closing-inner {
    grid-template-columns: auto 1fr;
  }

  .closing .text-link {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .shell,
  .policy {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

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

  .site-header nav {
    gap: 12px;
    font-size: 0.8rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 70px 80px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .closing-inner {
    grid-template-columns: 70px 1fr;
    gap: 20px;
  }

  .closing img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }

  .subpage-hero {
    padding-block: 86px 92px;
  }

  .support-layout,
  .policy {
    padding-block: 74px 100px;
  }

  .policy-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
