/* stemquote.shop: one stylesheet for the front page, the account pages and the app. Phone first. */
:root {
  --rose: #8c3b5e;
  --rose-dark: #6f2c49;
  --rose-tint: #f6ebf0;
  --rose-line: #e8d3dc;
  --ink: #2a2226;
  --muted: #6b5d64;
  --line: #ebe3e6;
  --paper: #fbf8f6;
  --white: #fff;
  --leaf: #3f6b4f;
  --leaf-tint: #e8f1eb;
  --amber: #8a5a12;
  --amber-tint: #fbf1de;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 680; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
li { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid #c58aa3; outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--rose); background: var(--rose); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--rose); }
.btn-ghost:hover { background: var(--rose-tint); color: var(--rose-dark); }
.btn-plain { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-plain:hover { background: var(--rose-tint); color: var(--ink); border-color: var(--rose-line); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: .92rem; }
.btn-danger { background: #fff; color: #9b2c2c; border-color: #e6c4c4; }
.btn-danger:hover { background: #fbeeee; color: #7e1f1f; border-color: #d9a9a9; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--rose); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(251, 248, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 750; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; gap: 22px; margin-left: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-end .login { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 10px 6px; }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { max-width: 14em; }
.hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.nocard { font-size: .92rem; color: var(--muted); }
@media (min-width: 980px) { .hero { padding: 64px 0 56px; } .hero-grid { grid-template-columns: 1fr 1.08fr; align-items: start; } .hero-copy { position: sticky; top: 112px; } }

/* the product screen */
.screen { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 30, 45, .05), 0 18px 40px -18px rgba(90, 40, 65, .25); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fdfbfa; font-size: .82rem; color: var(--muted); }
.screen-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose-line); }
.screen-bar .tag { margin-left: auto; background: var(--amber-tint); color: var(--amber); border-radius: 999px; padding: 2px 10px; font-weight: 650; }
.screen-body { padding: 16px; display: grid; gap: 14px; }
.msg { background: var(--rose-tint); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.msg b { color: var(--rose-dark); font-weight: 650; background: #fff; border-radius: 4px; padding: 0 3px; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; background: #fff; }
.chip span { color: var(--muted); }
.lines { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.lines th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 650; padding: 4px 0; border-bottom: 1px solid var(--line); }
.lines td { padding: 7px 0; border-bottom: 1px solid #f3eef0; vertical-align: middle; }
.lines .n { text-align: right; white-space: nowrap; padding-left: 10px; }
.lines tfoot td { border-bottom: 0; padding-top: 9px; }
.lines .total td { font-weight: 750; font-size: 1.02rem; border-top: 2px solid var(--ink); }
.assume { font-size: .75rem; color: var(--amber); background: var(--amber-tint); border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.confirm { font-size: .78rem; color: #8a2f2f; background: #fbecec; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.budget { background: var(--leaf-tint); color: var(--leaf); border-radius: 10px; padding: 8px 12px; font-size: .92rem; font-weight: 600; }
.budget.over { background: var(--amber-tint); color: var(--amber); }
.reply { border-left: 3px solid var(--rose-line); padding: 2px 0 2px 12px; font-size: .9rem; color: #4a3d43; white-space: pre-line; }

/* the try box on the front page */
.try-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.try-prices label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .84rem; background: #fdfbfa; border: 1px solid var(--line); border-radius: 8px; padding: 4px 4px 4px 9px; }
.try-prices input { width: 64px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; text-align: right; background: #fff; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.try-left { font-size: .84rem; color: var(--muted); }

/* sections */
section { padding: 48px 0; }
@media (min-width: 820px) { section { padding: 64px 0; } }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--rose-tint); color: var(--rose); font-weight: 750; display: grid; place-items: center; font-size: 1.1rem; }
.steps p { margin: 9px 0 0; font-size: 1.04rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } .steps li { grid-template-columns: 1fr; } }
.features { display: grid; gap: 16px; margin-top: 32px; }
.feature { border-top: 2px solid var(--rose-line); padding: 18px 0 4px; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 svg { flex: none; }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
.not { max-width: 68ch; margin-top: 28px; border: 1px dashed var(--rose-line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.not strong { color: var(--ink); }
.plan { background: var(--white); border: 1.5px solid var(--rose-line); border-radius: 20px; padding: 28px 24px; max-width: 520px; margin-top: 28px; }
.plan .amount { font-size: 3rem; font-weight: 780; letter-spacing: -0.02em; line-height: 1; }
.plan .per { color: var(--muted); font-size: 1rem; font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--rose); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
.band { background: var(--rose); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #f3dfe7; }
.band .btn { background: #fff; color: var(--rose); border-color: #fff; }
.band .btn:hover { background: var(--rose-tint); color: var(--rose-dark); }

/* footer */
.foot { padding: 32px 0 40px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 10px; }
.foot .brand { font-size: 1rem; }
.foot .brand img { width: 24px; height: 24px; border-radius: 6px; }
.syng-legal-links a { color: var(--muted); }

/* forms and the account pages */
.auth { min-height: calc(100vh - 220px); padding: 40px 0 64px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; }
.auth .card { max-width: 440px; margin: 0 auto; }
@media (min-width: 600px) { .card { padding: 30px 28px; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .lbl { font-weight: 620; font-size: .94rem; }
.hint { font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d9cdd2; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(140, 59, 94, .18); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: .94rem; margin-bottom: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--rose); flex: none; }
.note { border-radius: 10px; padding: 10px 14px; font-size: .94rem; margin: 0 0 16px; }
.note.err { background: #fbecec; color: #7e1f1f; }
.note.ok { background: var(--leaf-tint); color: #2d5139; }
.note.info { background: var(--rose-tint); color: var(--rose-dark); }
.note.warn { background: var(--amber-tint); color: #6c470e; }
[hidden] { display: none !important; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* the app */
.app-main { padding: 28px 0 64px; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.app-head h1 { font-size: 1.6rem; margin: 0; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 12px; font-size: .84rem; font-weight: 620; background: var(--rose-tint); color: var(--rose-dark); }
.pill.ok { background: var(--leaf-tint); color: var(--leaf); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; margin-bottom: 18px; }
@media (min-width: 700px) { .panel { padding: 24px; } }
.panel > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.list-dl dd { overflow-wrap: anywhere; min-width: 0; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary h2 { margin: 0; font-size: 1.2rem; }
.panel > summary .more { margin-left: auto; color: var(--rose); font-size: .9rem; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.ptable { display: grid; gap: 8px; margin: 16px 0 10px; }
.prow { display: grid; grid-template-columns: 1fr 96px 40px; gap: 8px; align-items: center; }
.prow .always { grid-column: 1 / -1; order: 4; display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); min-height: 44px; margin-top: -8px; cursor: pointer; }
.prow .always input { width: 22px; height: 22px; margin: 11px 0; accent-color: var(--rose); }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money input { padding-left: 22px; text-align: right; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.x:hover { background: #fbecec; color: #7e1f1f; }
@media (min-width: 700px) { .prow { grid-template-columns: 1fr 110px 170px 40px; } .prow .always { grid-column: auto; order: 0; margin: 0; } }
.grid2 { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--rose-line); border-top-color: var(--rose); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } * { transition: none !important; } }
.qlines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qlines th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 650; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.qlines td { padding: 6px 4px; border-bottom: 1px solid #f3eef0; vertical-align: middle; }
.qlines input { min-height: 40px; padding: 6px 8px; }
.qlines .q { width: 70px; }
.qlines .u { width: 110px; }
.qlines .t { text-align: right; white-space: nowrap; width: 90px; }
.qlines .d { width: 44px; }
.qlines .tag { margin-top: 3px; }
.sumbox { margin-left: auto; max-width: 340px; display: grid; gap: 4px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.sumbox div { display: flex; justify-content: space-between; gap: 20px; }
.sumbox .grand { font-weight: 760; font-size: 1.15rem; border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 4px; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li { border-bottom: 1px solid var(--line); }
.qlist button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 6px; }
.qlist button:hover, .qlist button:focus-visible { background: var(--rose-tint); }
.qlist .who { font-weight: 650; }
.qlist .meta { font-size: .86rem; color: var(--muted); }
.qlist .amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.status { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 650; background: #f1ecee; color: var(--muted); }
.status.sent { background: var(--rose-tint); color: var(--rose-dark); }
.status.booked { background: var(--leaf-tint); color: var(--leaf); }
.status.lost { background: #f1ecee; color: #7b6f74; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.tabs button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; min-height: 44px; min-width: 52px; cursor: pointer; color: var(--muted); }
.tabs button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.list-dl dt { color: var(--muted); }
.list-dl dd { margin: 0; }
