/* Matches whitelilac.ca: navy #182E60, yellow pill buttons, green accents,
   Fraunces headings, Figtree body, Caveat handwritten notes.
   Sized in rem so it stays usable when clients zoom to 150–200%. */
:root {
  --navy: #182E60;
  --navy-soft: #4B5A7D;
  --green: #557309;
  --green-bg: #F1F5E6;
  --green-bg-2: #E7F0CF;
  --blue-bg: #E5EAF5;
  --yellow: #FFC119;
  --yellow-dark: #E6A800;
  --paper: #FCFDFB;
  --white: #FFFFFF;
  --red: #A3261B;
  --red-bg: #FBEAE7;
  --radius: 18px;
  --lime: #8DBF1F;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; } /* 18px base: easier to read */
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy-soft);
  background: var(--paper);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--navy); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 34rem; }

/* Top bar */
.topbar { background: var(--navy); color: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }
.brand img { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--white); }
.brand-name { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bg); }
.topbar-link { color: var(--white); font-size: .9rem; }

/* Main */
.hero { background: var(--green-bg); padding: 2.5rem 0 3rem; min-height: 60vh; }
.eyebrow { margin: 0 0 .4rem; color: var(--green); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-variation-settings: "SOFT" 100;
  color: var(--navy); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.12; margin: 0 0 1rem;
}
.underline { background: linear-gradient(transparent 82%, rgba(85,115,9,.55) 82%, rgba(85,115,9,.55) 92%, transparent 92%); }
/* Hand-drawn lime squiggle under a key word, like whitelilac.ca */
.squiggle {
  padding-bottom: .18em; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 40 2, 80 11, 120 6 S 180 3, 198 8' fill='none' stroke='%238DBF1F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% .32em no-repeat;
}
h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-variation-settings: "SOFT" 100; color: var(--navy); font-size: 1.45rem; line-height: 1.2; margin: 0 0 .6rem; }
.lede { font-size: 1.05rem; margin: 0 0 1.5rem; }
.muted { color: #6B7895; }
.small { font-size: .85rem; }
.center { text-align: center; }
.handwritten { font-family: "Caveat", cursive; font-size: 1.6rem; color: #3A2D16; text-align: center; margin: 1.5rem 0 .5rem; transform: rotate(-1.5deg); }

/* Card */
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(24,46,96,.06), 0 10px 30px rgba(24,46,96,.08);
  margin-bottom: 1.25rem;
}
.card p:first-child { margin-top: 0; }

/* Forms */
label { display: block; font-weight: 600; color: var(--navy); margin: 0 0 .35rem; }
input[type=text], input:not([type]), input[inputmode] {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--navy);
  padding: .8rem 1rem; border: 2px solid #C9D2E6; border-radius: 12px; background: var(--white);
  margin-bottom: 1.1rem;
}
input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,193,25,.45); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: .85rem 1.6rem; border: 2px solid var(--navy); min-height: 3rem;
}
.btn-primary { background: var(--yellow); color: var(--navy); border-color: var(--yellow); width: 100%; margin-top: .4rem; }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-secondary { background: transparent; color: var(--navy); width: 100%; margin-top: .6rem; }
.btn-secondary:hover { background: var(--blue-bg); }
.btn-small { font-size: .85rem; padding: .35rem .9rem; min-height: 0; background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Amount rows */
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #EEF1F7; flex-wrap: wrap; }
.row strong { color: var(--navy); font-size: 1.15rem; }
.row.total { border-bottom: 0; padding-top: .9rem; margin-bottom: .6rem; }
.row.total strong { font-family: "Fraunces", Georgia, serif; font-size: 1.7rem; }

/* Tips */


/* Notices */
.notice { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 500; }
.notice-error { background: var(--red-bg); color: var(--red); border: 1px solid #F0C4BD; }
.notice-ok { background: var(--green-bg-2); color: #3D5306; }

/* Footer */
.footer { background: var(--white); padding: 1.6rem 0 2rem; font-size: .9rem; border-top: 3px solid var(--green-bg-2); }
.secure-note { display: flex; gap: .5rem; align-items: flex-start; color: var(--navy); font-weight: 500; }
.secure-note svg { flex: none; margin-top: .2rem; color: var(--green); }

/* Admin */
.good { color: var(--green); } .bad { color: var(--red); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); }
table.admin { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.admin th, table.admin td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid #EEF1F7; vertical-align: top; }
table.admin th { color: var(--navy); background: var(--blue-bg); }
tr.st-declined td { color: #9AA3B8; }
tr.st-review td { background: var(--red-bg); }
body:has(table.admin) .narrow { max-width: 72rem; }

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

/* Waves between sections, like whitelilac.ca */
.hero { padding-bottom: 2rem; }
.wave { line-height: 0; background: var(--green-bg); margin-top: -1px; }
.wave svg { display: block; width: 100%; height: 3rem; }
.wave-fill { fill: var(--white); }
.wave-line { fill: none; stroke: var(--lime); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.footer { border-top: 0; }

/* Yellow sticky note, slightly tilted */
.sticky {
  display: inline-block; font-family: "Caveat", cursive; font-size: 1.35rem; line-height: 1.15;
  color: #3A2D16; background: var(--yellow); padding: .35rem .8rem .45rem; border-radius: 4px;
  box-shadow: 0 6px 14px rgba(24,46,96,.16); transform: rotate(-3deg);
}
.sticky-block { display: table; margin: 1.6rem auto .8rem; font-size: 1.5rem; }

/* Tip: note under the pay button, and its own separate card after payment */
.tip-note {
  background: var(--white); border: 2px dashed var(--lime); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 0 0 1.25rem; font-size: .95rem;
}
.tip-note p { margin: .25rem 0; }
.tip-note-title { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--green); line-height: 1; }
.tip-card { position: relative; border-top: 5px solid var(--lime); padding-top: 2rem; margin-top: 2.2rem; }
.tip-card .sticky { position: absolute; top: -1.1rem; right: 1rem; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.money-input { margin-bottom: .5rem; }
.money-input input { padding-left: 2rem; margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: .05rem .5rem; }
tr.st-cancelled td { color: #9AA3B8; }
@media (max-width: 30rem) { .tip-card .sticky { right: .5rem; font-size: 1.15rem; } }

/* Save-card checkbox */
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; margin: 1rem 0 .4rem; padding: .9rem 1rem;
  background: var(--green-bg); border: 2px solid var(--green-bg-2); border-radius: 14px; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .15rem; accent-color: var(--green); }
.check .muted { display: block; font-weight: 400; margin-top: .25rem; }
.check:focus-within { border-color: var(--green); }
.saved-card-note { background: var(--blue-bg); border-radius: 12px; padding: .7rem 1rem; font-size: .95rem; }
.terms h2 { font-size: 1.15rem; margin-top: 1.3rem; }
.terms ul { padding-left: 1.2rem; } .terms li { margin: .3rem 0; }
.tag-blue { background: var(--blue-bg); } .tag-green { background: var(--green-bg-2); }
.btn-ghost { background: transparent; border-color: #C9D2E6; }
.row form { margin: 0; }
