:root {
  --wine: #6E1F2E; --burgundy: #800020; --cream: #FFFDF9; --paper: #F6EFEA; --blush: #F7ECEE;
  --line: #EAD9DD; --navy: #272A4A; --muted: #565A78; --gold: #F4D9A0; --goldline: #B08A43;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--navy); font: 17px/1.6 var(--sans); min-height: 100vh; }
a { color: var(--wine); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(255,253,249,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.word { font: 700 26px/1 var(--serif); }
.word em { color: var(--wine); }
.topnav { display: flex; gap: 6px; }
.topnav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.topnav a.on, .topnav a:hover { background: var(--blush); color: var(--wine); }

main { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) 80px; outline: none; }
.loading { color: var(--muted); text-align: center; padding: 60px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h1 em, h2 em { color: var(--wine); }
.lead { color: var(--muted); font-size: 18px; margin: 10px 0 0; max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9A6B76; }

.card { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 40px -32px rgba(74,30,38,.45); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--goldline); cursor: pointer;
  background: linear-gradient(180deg, #7D2536, var(--wine)); color: #FFF8EE; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none;
  box-shadow: inset 0 0 0 3px var(--wine), inset 0 0 0 4px rgba(214,178,106,.75), 0 12px 26px -16px rgba(110,31,46,.6); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: var(--cream); color: var(--wine); box-shadow: none; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hello .eyebrow, .center .eyebrow { display: block; }

/* home */
.hello { margin-bottom: 28px; }
.group { margin-top: 34px; }
.group h2 { font-size: 30px; }
.group p { margin: 4px 0 16px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--navy); background: var(--cream); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(74,30,38,.5); border-color: #D9B8BF; }
.tile b { font-size: 17px; }
.tile span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tile i { width: 34px; height: 34px; border-radius: 10px; background: var(--blush); color: var(--wine); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; }

/* feature */
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-top: 22px; align-items: start; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
form.card { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 860px) { form.card { position: static; } }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=text], select, textarea { width: 100%; border: 1px solid #DCC7CC; border-radius: 12px; padding: 11px 13px; background: #fff; font-weight: 400; font-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
.drop { border: 1.5px dashed #D2B5BC; border-radius: 14px; padding: 14px; background: #FFFBFA; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 500; font-size: 14px; color: var(--muted); }
.drop img { max-height: 90px; border-radius: 8px; }
.rec { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #C0182F; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.results { display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--muted); text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line); border-radius: 22px; background: rgba(255,253,249,.6); }
.sec { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--burgundy); border-radius: 16px; padding: 16px 18px; }
.sec h3 { font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.sec p { margin: 0 0 6px; white-space: pre-wrap; }
.sec ul { margin: 0; padding-left: 20px; }
.sec li { margin: 3px 0; }
.demo { font-size: 13px; color: #8A5A66; background: var(--blush); border-radius: 10px; padding: 8px 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #EBD3D9; border-top-color: var(--wine); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* saved & account */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tabs button { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.tabs button.on { background: var(--wine); color: #FFF8EE; border-color: var(--wine); }
.item { margin-bottom: 12px; }
.item summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.item small { color: var(--muted); font-weight: 500; }
.center { max-width: 520px; margin: 30px auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.center input { text-align: center; }
.price { font: 700 64px/1 var(--serif); }
.price small { font: 500 18px var(--sans); color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
#toast.show { opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.back { display: flex; width: max-content; }
.eyebrow { display: block; }
@media (max-width: 520px) {
  .top { padding: 10px 12px; gap: 8px; }
  .word { font-size: 22px; }
  .logo svg { width: 28px; height: 28px; }
  .topnav { gap: 2px; }
  .topnav a { padding: 7px 9px; font-size: 14px; }
}
@media (max-width: 360px) { .word { display: none; } }

.agree{display:flex;flex-direction:row;font-weight:400;gap:10px;align-items:flex-start;justify-content:center;font-size:15px;line-height:1.5;margin:6px auto 14px;max-width:440px;text-align:left}
.agree input{width:20px;height:20px;margin-top:3px;flex:none;accent-color:#6E1F2E}
