/* Portal Tina Aldea — login e área do cliente */
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/merriweather-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/merriweather-latin-400-italic.woff") format("woff"); }
@font-face { font-family: "Merriweather"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/merriweather-latin-700-normal.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("fonts/open-sans-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("fonts/open-sans-latin-700-normal.woff") format("woff"); }
@font-face { font-family: "Dancing Script"; font-weight: 700; font-display: swap; src: url("fonts/dancing-script-latin-700-normal.woff") format("woff"); }

:root {
  --green: #00A20E; --green-dark: #047a10; --tint: #f1f8f1;
  --ink: #1f2937; --body: #374151; --soft: #6b7280; --faint: #9ca3af;
  --line: #e8e2d6; --paper: #faf6ef; --card: #ffffff; --gold: #b8945a;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 17px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
button { font-family: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 18px; }
main { flex: 1; padding: 22px 0 48px; }

/* ---- topo ---- */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--green); margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: #fff; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 7px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }
.linkbtn { border: 0; background: none; color: var(--soft); font-size: 13px; font-weight: 600; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---- textos de abertura ---- */
.hello { padding: 10px 0 6px; }
.hello h1 { font-family: var(--serif); font-size: 27px; line-height: 1.25; color: var(--ink); margin: 0 0 6px; }
.hello p { margin: 0; color: var(--soft); font-size: 16px; }

/* ---- cartões ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.group { margin-top: 30px; }
.group > h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px 4px; }
.items { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; cursor: pointer; color: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.item:hover, .item:focus-visible { border-color: var(--green); box-shadow: 0 2px 14px rgba(0, 162, 14, .10); outline: none; }
.item .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--green-dark); display: grid; place-items: center; }
.item .ico svg { width: 22px; height: 22px; }
.item .txt { flex: 1; min-width: 0; }
.item .name { display: block; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.3; }
.item .sub { display: block; font-size: 13.5px; color: var(--soft); margin-top: 2px; }
.item .go { flex: none; color: var(--faint); }
.item.waiting { cursor: default; background: #fffdf9; }
.item.waiting:hover { border-color: var(--line); box-shadow: none; }
.item.waiting .ico { background: #f6efe2; color: var(--gold); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--green); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }

/* ---- formulários ---- */
.form h2 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.form > p { margin: 0 0 16px; color: var(--soft); font-size: 15.5px; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input[type=email], .field input[type=text], .field select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; appearance: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choices label { display: block; position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 8px; font-size: 14.5px; font-weight: 600; color: var(--body); cursor: pointer; background: #fff; }
.choices input:checked + span { border-color: var(--green); background: var(--tint); color: var(--green-dark); }
.choices input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 162, 14, .25); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 16.5px; font-weight: 700; padding: 15px 28px; cursor: pointer; text-decoration: none; width: 100%; }
.btn:hover { background: var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn.small { width: auto; font-size: 14.5px; padding: 11px 20px; }
.error { color: #b42318; font-size: 14px; margin: -6px 0 12px; }

/* ---- login ---- */
.login { max-width: 430px; margin: 0 auto; padding-top: 26px; text-align: center; }
.login .face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.login h1 { font-family: var(--serif); font-size: 27px; color: var(--ink); margin: 0 0 6px; line-height: 1.25; }
.login .lead { color: var(--soft); margin: 0 0 22px; font-size: 16px; }
.login .card { text-align: left; }
.login .alt { margin-top: 18px; font-size: 14.5px; color: var(--soft); }
.notice { background: #fff8e8; border: 1px solid #f1dfb0; color: #7a5b12; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; text-align: left; }
.sent { text-align: center; }
.sent .ok { width: 58px; height: 58px; border-radius: 50%; background: var(--tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.sent h2 { font-family: var(--serif); color: var(--ink); font-size: 22px; margin: 0 0 8px; }
.sent p { margin: 0 0 8px; }
.sent small { color: var(--faint); }

/* ---- leitura ---- */
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--soft); font-size: 14.5px; font-weight: 600; padding: 6px 0; cursor: pointer; margin-bottom: 6px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.doc header { text-align: center; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc header .kick { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.doc header h1 { font-family: var(--serif); font-size: 28px; line-height: 1.22; color: var(--ink); margin: 8px 0 0; }
.doc header p { font-family: var(--serif); font-style: italic; color: var(--soft); margin: 8px 0 0; font-size: 16px; }
.doc p { margin: 0 0 15px; }
.doc h2 { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--green-dark); margin: 38px 0 14px; padding-bottom: 10px; position: relative; }
.doc h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px; background: var(--gold); }
.doc h2.plain { color: var(--ink); font-size: 19px; }
.doc h2.plain::after { display: none; }
.doc h2 .kick { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.doc h3 { font-family: var(--serif); font-size: 17.5px; color: var(--ink); margin: 26px 0 10px; line-height: 1.35; }
.doc .leadp { font-family: var(--serif); font-style: italic; font-size: 17.5px; color: var(--ink); line-height: 1.6; }
.doc .epi { font-family: var(--serif); font-style: italic; color: var(--soft); text-align: center; padding: 0 18px; margin-bottom: 22px; }
.doc .it { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin: 0 0 18px; }
.doc .it.focus { border-left-color: var(--green); border-left-width: 3px; }
.doc .it b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.doc .it.focus b { color: var(--green-dark); }
.doc .it small { font-weight: 400; color: var(--soft); margin-left: 8px; font-size: 13px; }
.doc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.doc ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.doc ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.doc ol li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; min-height: 30px; }
.doc ol li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--green-dark); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.doc ol li b { display: block; color: var(--ink); }
.doc ol li .meta { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.doc .call { background: var(--tint); border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; padding: 15px 18px; margin: 0 0 20px; font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 16.5px; line-height: 1.6; }
.doc .facts { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 6px 0 26px; padding: 2px 16px; }
.doc .facts div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.doc .facts div:first-child { border-top: 0; }
.doc .facts span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.doc .facts strong { color: var(--ink); text-align: right; }
.doc .verse { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 18px; line-height: 1.9; margin: 8px 0 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc .sig { margin-top: 30px; }
.doc .sig span { display: block; }
.doc .sig strong { font-family: "Dancing Script", cursive; font-size: 34px; color: var(--ink); line-height: 1.2; font-weight: 700; }
.doc .note { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--faint); }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 38px 0 0; }

.doc details.script { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 24px; background: var(--paper); }
.doc details.script summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--green-dark); font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.doc details.script summary::-webkit-details-marker { display: none; }
.doc details.script summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; }
.doc details.script[open] summary::before { content: "–"; }
.doc details.script .in { padding: 0 18px 12px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.85; color: var(--body); }
.doc details.script .pause { text-align: center; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .1em; color: var(--faint); margin: 0 0 15px; }
.doc audio { width: 100%; margin: 0 0 18px; }

/* ---- desenho ---- */
.sketch { margin: 0 0 26px; text-align: center; }
.sketch .frame { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--gold); padding: 7px; background: #fff; box-shadow: 0 10px 34px rgba(60, 40, 10, .13); }
.sketch img { width: 100%; max-width: 480px; height: auto; transition: filter 1.4s ease, opacity 1.4s ease; }
.sketch.veiled img { filter: blur(26px) saturate(.4); opacity: .55; }
.sketch .veil { position: absolute; inset: 7px; display: grid; place-items: center; background: rgba(250, 246, 239, .5); }
.sketch .veil .btn { width: auto; }
.sketch figcaption { font-family: var(--serif); font-style: italic; color: var(--soft); margin-top: 12px; }
.sketch .save { margin-top: 12px; }

/* ---- tarot ---- */
.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 30px; }
.tcard { text-align: center; }
.tcard .pos { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.tcard .face { aspect-ratio: 1 / 1.62; border: 1.5px solid var(--gold); border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(184, 148, 90, .55); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14% 6% 12%; }
.tcard .num { font-family: var(--serif); font-weight: 700; color: var(--green-dark); font-size: clamp(15px, 4.6vw, 21px); }
.tcard svg { width: 56%; color: var(--gold); }
.tcard .nm { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: clamp(10.5px, 3.1vw, 14px); line-height: 1.25; }

/* ---- ações ---- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0 0; }

/* ---- estados ---- */
.loading { text-align: center; color: var(--soft); padding: 60px 0; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); margin: 0 auto 12px; animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

footer.foot { border-top: 1px solid var(--line); background: #fff; padding: 22px 0 28px; text-align: center; font-size: 13px; color: var(--faint); }
footer.foot p { margin: 0 0 6px; }

@media (min-width: 600px) {
  .doc { padding: 44px 46px 36px; }
  .doc header h1 { font-size: 33px; }
  .hello h1 { font-size: 31px; }
  .spread { gap: 18px; padding: 0 30px; }
}
@media (prefers-reduced-motion: reduce) { .sketch img, .item, .spinner { transition: none; animation: none; } }
@media print {
  .top, .back, .actions, footer.foot, .sketch .save { display: none !important; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
