/* Villa Valentin · Arrival Intelligence
   The villa's design system (the same family as wires.villavalentin.com):
   Canela throughout, Paper and Ink, square corners, hairlines, no shadows, no glass. */

@font-face { font-family: "Canela"; src: url("/fonts/Canela-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("/fonts/Canela-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("/fonts/Canela-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("/fonts/Canela-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #231F20;
  --teak: #4A3A28;
  --paper: #F5F1E8;
  --sand: #EDE6D8;
  --linen: #E5DCCB;
  --dune: #D8CFBF;
  --stone: #B9A997;
  --driftwood: #8B7E6C;
  --bark: #7A6E5D;
  --cocoa: #5A5044;
  --earth: #3E362B;
  --clay: #A5654C;
  --sol: #F4B647;
  --white: #FFFFFF;
  --serif: "Canela", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.page {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* The dark band, as on the wires page. */
.band { background: var(--ink); padding: 44px 24px 36px; display: flex; justify-content: center; }
.band img { width: 170px; height: auto; display: block; }

.intro { padding: 36px 24px 6px; display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-weight: 700; font-size: 34px; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 4px 0 0; font-size: 16px; line-height: 1.65; letter-spacing: .01em; color: var(--cocoa); text-wrap: pretty; }

.cards { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px 28px; }

.card { background: var(--white); border: 1px solid var(--dune); padding: 20px 20px 22px; display: flex; flex-direction: column; margin: 0; }
.card__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--sol); }
.num { font-size: 12px; letter-spacing: .04em; color: var(--clay); }
h2 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.15; }

/* The ask */
.field { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 4px; border: 0; margin: 0; min-width: 0; }
fieldset.field { padding-top: 18px; }
fieldset.field legend { margin-bottom: 6px; float: left; width: 100%; }
fieldset.field .seg { clear: both; }
.field__label { font-size: 12px; letter-spacing: .02em; color: var(--bark); padding: 0; }
.field__hint { font-size: 13px; line-height: 1.5; color: var(--driftwood); }
input[type="text"], input[type="date"], input[type="time"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--dune);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .02em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms;
}
input[type="date"], input[type="time"] { font-size: 19px; }
input::placeholder { color: var(--stone); }
input:focus { outline: none; border-color: var(--ink); }
input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--ink); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; font-size: 15px; letter-spacing: .02em; color: var(--ink); background: transparent; transition: background 150ms, color 150ms; text-align: center; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--serif); font-size: 15px; letter-spacing: .02em;
  cursor: pointer; text-align: center;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--teak); border-color: var(--teak); }
.btn--primary[disabled] { background: var(--teak); border-color: var(--teak); cursor: progress; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--dune); }
.btn--quiet:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#ask > .btn--primary { margin-top: 20px; }

.status { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; line-height: 1.55; color: var(--cocoa); text-wrap: pretty; }
.status:empty { display: none; }
.status[data-tone="warn"] { color: var(--clay); }

.manual { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--linen); display: flex; flex-direction: column; gap: 12px; }

/* The plan */
.plan__summary { margin: 14px 0 0; font-size: 19px; line-height: 1.35; letter-spacing: .01em; text-wrap: balance; }
.plan__date { display: block; font-size: 15px; color: var(--cocoa); margin-top: 2px; }
.plan__source { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--bark); }
.plan__source b { font-weight: 400; color: var(--clay); }

.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 10px; bottom: 10px; width: 1px; background: var(--dune); }
.step { display: grid; grid-template-columns: 74px 1fr; column-gap: 24px; padding: 0 0 20px; position: relative; }
.step:last-child { padding-bottom: 4px; }
.step::before { content: ""; position: absolute; left: 79px; top: 9px; width: 7px; height: 7px; background: var(--white); border: 1px solid var(--ink); }
.step--key::before { background: var(--ink); }
.step__time { font-weight: 300; font-size: 19px; line-height: 1.2; letter-spacing: .01em; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums; }
.step__time small { display: block; font-size: 12px; letter-spacing: .04em; color: var(--bark); margin-top: 2px; }
.step__title { font-size: 17px; line-height: 1.3; }
.step__note { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--bark); text-wrap: pretty; }

.chip { display: inline-block; margin-top: 14px; padding: 6px 10px; border: 1px solid var(--ink); color: var(--ink); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

.fine { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--driftwood); font-style: italic; font-weight: 300; }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }

/* The promise */
.facts { margin: 0; }
.facts > div { padding: 13px 0; border-bottom: 1px solid var(--linen); display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 12px; letter-spacing: .02em; color: var(--bark); }
.facts dd { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: .02em; }
.note { margin: 16px 0 0; background: var(--sand); padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--earth); text-wrap: pretty; }

.foot { margin-top: auto; padding: 12px 24px 36px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linen); }
.btn--whatsapp { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn--whatsapp:hover { background: #A5957F; border-color: #A5957F; }
.folio { margin-top: 8px; display: flex; justify-content: center; gap: 8px; font-size: 12px; letter-spacing: .04em; color: var(--driftwood); }
.folio a:hover { color: var(--ink); }

@media (min-width: 560px) {
  h1 { font-size: 40px; }
  .actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .timeline::before { left: 70px; }
  .step { grid-template-columns: 62px 1fr; column-gap: 20px; }
  .step::before { left: 67px; }
  .step__time { font-size: 17px; }
}

@media print {
  body { background: var(--paper); padding: 0; }
  .band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #ask, .actions, .foot .btn { display: none !important; }
}
