/* The public front page and the privacy page. Same scorecard look as the app: a white card on fairway green,
   ruled rows, one condensed display face, and pin-flag yellow marking where to sign. */

.page-home { background: var(--desk); height: auto; min-height: 100%; }
.page-home main { display: block; }
.page-home a { color: var(--fairway-deep); }
.page-home :focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }

/* top bar */
.home-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 5vw, 56px); background: var(--fairway-deep); }
.page-home .home-brand { display: inline-flex; align-items: center; gap: 8px; font: 600 1.35rem/1 var(--display); letter-spacing: 0.01em; color: #fff; text-decoration: none; }
.home-by { font: 400 0.9rem/1 var(--body); opacity: 0.8; }
.home-brand .vendi-logo { height: 36px; }
.home-made { display: flex; align-items: center; gap: 10px; }
.home-made .vendi-logo { height: 30px; }
.page-home .home-bar-link { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* hero: the claim on the left, a picture of the signing screen on the right */
.hero { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 6vw, 76px) clamp(18px, 5vw, 56px) clamp(40px, 7vw, 88px); background: var(--fairway-deep); color: #fff; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.005em; max-width: 14ch; }
.hero-lead { margin-top: 18px; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: #d9e8dd; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.page-home .hero-second { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.page-home .hero-cta { display: inline-flex; align-items: center; background: var(--flag); border-color: var(--flag); color: var(--ink); text-decoration: none; }
.page-home .hero-cta:hover { background: #f0b91f; border-color: #f0b91f; }

.hero-card { justify-self: center; width: min(100%, 400px); padding: 22px 22px 20px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 18px 0 -8px rgba(0, 0, 0, 0.22), 0 30px 60px -30px rgba(0, 0, 0, 0.6); transform: rotate(-1.2deg); }
.card-title { font: 600 1.5rem/1.1 var(--display); }
.card-rows { margin: 14px 0 0; }
.card-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.card-rows dt { color: var(--muted); }
.card-rows dd { margin: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.card-sign { position: relative; margin-top: 14px; padding: 26px 10px 6px; border: 2px dashed var(--line); border-radius: 10px; background: var(--paper); }
.card-flag { position: absolute; top: -12px; left: 12px; padding: 3px 10px; border-radius: 4px; background: var(--flag); color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.card-sign svg { display: block; width: 100%; height: auto; }
.sig { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sign 2.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.sig-under { stroke-width: 1.8; animation-duration: 0.5s; animation-delay: 2.7s; }
.card-button { margin-top: 14px; padding: 13px; border-radius: var(--radius); background: var(--fairway); color: #fff; text-align: center; font: 600 1.2rem/1.1 var(--display); }
@keyframes sign { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sig { animation: none; stroke-dashoffset: 0; } }

/* sections */
.band { padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 56px); border-top: 1px solid var(--line); }
.band > h2, .demo-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

/* how it works: three holes on a scorecard */
.holes { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: hole; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.holes li { counter-increment: hole; position: relative; padding: 22px 22px 22px 78px; border-top: 1px solid var(--line); }
.holes li:first-child { border-top: 0; }
.holes li::before { content: counter(hole); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--fairway); border-radius: 50%; color: var(--fairway-deep); font: 600 1.25rem/1 var(--display); }
.holes h3 { font-size: 1.3rem; }
.holes p { margin-top: 6px; max-width: 46ch; color: var(--muted); }

/* what the club gets: ruled rows, like the lines of a scorecard */
.card-ledger { margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.card-ledger div { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.card-ledger dt { font: 600 1.2rem/1.2 var(--display); }
.card-ledger dd { margin: 0; max-width: 62ch; color: var(--muted); }

/* enquiry form */
.band-demo { display: grid; gap: 22px; background: var(--fairway-tint); }
.demo-copy p { margin-top: 8px; max-width: 46ch; }
.demo-form { display: grid; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.demo-form input, .demo-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { border-color: var(--fairway); }
.demo-form .optional { font-weight: 400; color: var(--muted); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-sent { padding: 14px 16px; border-radius: 8px; background: var(--fairway-tint); color: var(--fairway-deep); font-weight: 600; }
.demo-sent[hidden], .demo-form .btn[hidden] { display: none; }

.home-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px clamp(18px, 5vw, 56px) 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

/* the privacy notice page */
.home-doc { max-width: 70ch; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 32px); }
.home-doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.home-doc-date { margin-top: 6px; color: var(--muted); }
.home-doc p { margin-top: 16px; line-height: 1.6; overflow-wrap: anywhere; }

@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .holes { grid-template-columns: repeat(3, 1fr); }
  .holes li { padding: 72px 24px 26px; border-top: 0; border-left: 1px solid var(--line); }
  .holes li:first-child { border-left: 0; }
  .holes li::before { left: 24px; top: 22px; }
  .card-ledger div { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 28px; align-items: baseline; }
  .band-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
}
