@font-face {
  font-family:PelakFA;
  src:url('fonts/PelakFA-Regular.woff2') format('woff2');
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-Regular.woff2') format('woff2');
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-light.woff2') format('woff2');
  font-weight:300;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-Medium.woff2') format('woff2');
  font-weight:500;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-SemiBold.woff2') format('woff2');
  font-weight:600;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-Bold.woff2') format('woff2');
  font-weight:700;
  font-display:swap
}
@font-face {
  font-family:Pelak;
  src:url('fonts/Pelak-ExtraBold.woff2') format('woff2');
  font-weight:800;
  font-display:swap
}
:root {
  --red:#f12133;
  --navy:#121f36;
  --muted:#87938b;
  --surface:#f2f2f3;
  --border:#d8d8f0;
  color:#000;
  background:#f8f8f8;
  font-family:Pelak,sans-serif;
  font-synthesis:none;
  line-height:1.46
}
* {
  box-sizing:border-box
}
body,h1,h2,h3,p {
  margin:0
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:0
}
a {
  color:inherit;
  text-decoration:none
}
img {
  display:block
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--navy);
  outline-offset:5px
}
html {
  scroll-behavior:smooth
}
h1,h2 {
  font-weight:700
}
h2 {
  font-size:48px
}
strong {
  font-weight:700
}
.desktop {
  zoom:0.65;
  width:1440px;
  margin:0 auto;
  transform-origin:top center
}
.button {
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  font-weight:600;
  background:#fff;
  color:#000
}
.primary {
  background:var(--red);
  color:#fff
}
.header {
  height:253px;
  position:relative
}
.brand {
  position:absolute;
  right:120px;
  top:109px
}
.header-signup {
  position:absolute;
  left:120px;
  top:96px;
  width:185px;
  height:64px;
  font-size:20px;
  font-weight:700
}
.header nav {
  position:absolute;
  left:502px;
  top:113px;
  display:flex;
  gap:38px;
  align-items:center;
  font-size:20px;
  color:var(--navy);
  font-weight:600
}
.header nav button {
  padding:0;
  background:none;
  color:inherit
}
.hero {
  height:886px;
  position:relative;
  text-align:center
}
.hero h1 {
  position:absolute;
  top:0;
  width:100%;
  font-size:48px
}
.hero-description {
  position:absolute;
  width:715px;
  top:94px;
  left:362.5px;
  font-size:32px
}
.hero-cta {
  position:absolute;
  top:226px;
  left:442.5px;
  width:555px;
  height:60px;
  gap:20px;
  font-size:24px;
  font-weight:700;
  direction:rtl
}
.hero-shadow {
  position:absolute;
  left:164px;
  top:765px
}
.hero-art {
  position:absolute;
  left:274px;
  top:217px;
  object-fit:cover
}
.about {
  height:862px;
  margin-top:80px;
  position:relative;
  scroll-margin-top:30px
}
.about-label {
  position:absolute;
  right:120px;
  top:33px;
  width:253px;
  height:54px;
  background:var(--red);
  color:white;
  border-radius:20px 0 0 20px;
  text-align:center;
  padding-top:9px;
  font-size:24px;
  font-weight:600
}
.phone-art {
  position:absolute;
  left:76px;
  top:0
}
.home-art {
  position:absolute;
  left:92px;
  top:316px
}
.about h2 {
  position:absolute;
  right:120px;
  top:147px;
  font-size:36px;
  line-height:52px
}
.about-description {
  position:absolute;
  right:120px;
  top:275px;
  width:696px;
  font-size:24px;
  line-height:45px
}
.benefits {
  position:absolute;
  top:615px;
  left:120px;
  width:1200px;
  display:grid;
  grid-template-columns:381px 381px 381px;
  justify-content:space-between;
  direction:rtl
}
.benefits article {
  text-align:center;
  color:var(--navy);
  font-size:20px
}
.benefits h3 {
  height:73px;
  font-size:20px;
  line-height:29px;
  font-weight:700;
  color:#2b2d42
}
.benefits p {
  height:174px;
  background:white;
  border-radius:40px;
  padding:29px 30px;
  box-shadow:0 0 10px #0000000d
}
.benefits article:first-child p {
  padding-inline:49px
}
.quiz-banner {
  position:relative;
  height:360px;
  width:1200px;
  margin:80px auto 0;
  background:var(--red);
  border-radius:80px;
  overflow:hidden;
  box-shadow:0 0 10px #0000000d;
  color:white
}
.quiz-art {
  position:absolute;
  left:65px;
  top:-9px
}
.banner-glow {
  position:absolute;
  width:146px;
  height:144px;
  top:0;
  left:77px;
  background:#fbbd1d;
  filter:blur(100px)
}
.banner-shadow {
  position:absolute;
  width:547px;
  height:313px;
  left:-59px;
  top:140px
}
.quiz-banner h2 {
  position:absolute;
  top:69px;
  right:62px;
  font-size:48px
}
.quiz-banner>p {
  position:absolute;
  top:154px;
  right:62px;
  font-size:32px;
  font-weight:600
}
.quiz-start {
  position:absolute;
  right:62px;
  top:232px;
  width:353px;
  height:60px;
  font-size:24px;
  font-weight:700;
  gap:20px
}
.calculator {
  position:relative;
  margin:80px auto 0;
  width:1200px;
  min-height:583px;
  display:flex;
  gap:22px;
  direction:rtl;
  scroll-margin-top:30px
}
.calculator aside {
  width:406px;
  flex:none;
  text-align:center
}
.calculator aside h2 {
  line-height:70px
}
.calculator aside p {
  font-size:24px;
  line-height:45px;
  margin-top:26px
}
.calculator aside img {
  margin-top:22px
}
.calc-card {
  width:772px;
  min-height:582px;
  padding:40px;
  border-radius:60px;
  background:#fff;
  box-shadow:0 0 10px #0000000d;
  align-self:start;
  text-align:right;
  direction:rtl
}
.calc-card h3 {
  font-size:32px;
  line-height:45px;
  font-weight:800;
  color:var(--navy)
}
.calc-card[data-step="people"] {
  min-height: 503px;
  padding-top: 45px;
}
.calc-card[data-step="shares"] {
  min-height: 603px;
}
.split-item:last-child {
  min-height: 76px;
}
.calc-card .calc-body {
  margin-top:40px
}
.expense-row {
  display:grid;
  grid-template-columns:168px 168px 310px;
  gap:24px;
  margin-bottom:40px
}
.field {
  display:flex;
  flex-direction:column;
  gap:12px;
  color:var(--navy);
  font-size:20px;
  font-weight:600;
  line-height:45px
}
.field input {
  border:1px solid var(--border);
  border-radius:20px;
  height:67px;
  padding:10px 20px;
  width:100%;
  font-size:24px;
  line-height:45px;
  font-weight:300;
  background:white;
  min-width:0;
  color:var(--navy)
}
input:not([type=radio]):focus {
  outline:none;
  border-color:var(--navy);
  box-shadow:none
}
input::placeholder {
  color:var(--muted);
  opacity:1
}
.money-field {
  display:flex;
  direction:rtl;
  position:relative
}
.money-field input {
  padding-left:94px
}
.money-field span {
  position:absolute;
  left:0;
  top:0;
  width:85px;
  height:67px;
  display:grid;
  place-items:center;
  background:var(--surface);
  border-radius:20px 0 0 20px;
  color:#2b2d42;
  font-size:24px;
  font-weight:500
}
.calc-button {
  display:flex;
  width:100%;
  height:64px;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:20px;
  line-height:45px;
  border-radius:20px;
  font-weight:600
}
.calc-button img {
  width:24px;
  height:24px
}
.secondary {
  background:var(--surface);
  color:#000
}
.expense-total {
  text-align:center;
  margin-top:50px;
  font-size:20px;
  font-weight:600;
  line-height:45px
}
.calc-next {
  margin-top:30px
}
.calc-heading {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.back {
  background:none;
  padding:0;
  font-size:20px;
  color:var(--muted);
  line-height:45px
}
.people-count {
  background:var(--surface);
  padding:5px 15px;
  border-radius:15px;
  font-size:20px
}
.people-list {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:40px;
  min-height:55px
}
.person-chip {
  padding:5px 15px;
  color:#fff;
  background:var(--navy);
  border-radius:15px;
  display:flex;
  align-items:center;
  gap:16px;
  line-height:45px;
  font-size:20px
}
.person-chip img {
  width:24px;
  height:24px;
  transform:rotate(-45deg)
}
.add-person {
  margin-top:40px;
  display:flex;
  gap:30px;
  align-items:end
}
.add-person .field {
  flex:1
}
.add-person .calc-button {
  width:228px;
  height:67px
}
.people-next {
  margin-top:50px
}
.calc-intro {
  font-size:20px;
  line-height:35px;
  color:var(--navy);
  margin-top:12px
}
.split-list {
  margin-top:30px
}
.split-item {
  min-height:88px;
  display:grid;
  grid-template-columns:1fr 2fr 128px;
  align-items:center;
  border-bottom:2px solid var(--surface);
  gap:16px;
  font-size:20px
}
.split-item strong {
  font-size:24px
}
.edit-button {
  height:64px;
  border-radius:20px;
  background:var(--surface);
  color:#102d50;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:20px
}
.edit-button img {
  width:18px;
  height:18px
}
.split-next {
  margin-top:50px
}
.settlement-card {
  text-align:center
}
.settlement-card>img {
  margin:0 auto;
  width:250px;
  height:auto;
  object-fit:contain
}
.settlement-card h3 {
  font-size:36px;
  line-height:52px;
  margin-top:24px
}
.settlement-summary {
  display:inline-block;
  background:var(--surface);
  border-radius:20px;
  padding:10px 20px;
  font-size:24px;
  line-height:45px;
  margin-top:15px
}
.transfers {
  margin-top:50px;
  text-align:right
}
.transfer {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:20px;
  min-height:85px;
  border-bottom:2px solid var(--surface);
  font-size:24px;
  font-weight:600
}
.transfer {
  line-height: 45px;
}
.transfer:last-child {
  min-height: 45px;
  border-bottom: 0;
}
.transfer b {
  font-size:32px;
  white-space:nowrap
}
.copy-transfers {
  margin-top:50px
}
.signup {
  position:relative;
  margin:80px auto 0;
  width:1224px;
  height:483px;
  background:#fff;
  border-radius:80px;
  box-shadow:0 0 10px #0000000d;
  scroll-margin-top:30px
}
.gift-art {
  position:absolute;
  left:41px;
  top:80px
}
.signup h2 {
  position:absolute;
  right:54px;
  top:41px;
  font-size:48px
}
.signup h2 span {
  color:var(--red)
}
.signup-description {
  position:absolute;
  top:135px;
  right:54px;
  width:755px;
  font-size:24px;
  color:#303030
}
.signup form {
  position:absolute;
  right:54px;
  top:325px;
  display:flex;
  gap:15px
}
.signup input {
  width:425px;
  height:67px;
  border:1px solid black;
  border-radius:20px;
  padding:10px 20px;
  font-size:20px;
  font-weight:600;
  background:white
}
.signup input::placeholder {
  color:black
}
.signup button {
  height:67px;
  padding:5px 20px;
  font-size:20px
}
.signup-note {
  position:absolute;
  right:54px;
  top:412px;
  font-size:20px;
  color:#303030
}
.form-status {
  position:absolute;
  right:54px;
  top:453px;
  font-size:16px;
  color:#a00
}
.desktop footer {
  position:relative;
  margin-top:141px;
  height:124px;
  background:var(--navy);
  color:#fff
}
.footer-brand {
  position:absolute;
  top:40px;
  right:78.676px
}
.desktop footer>p {
  position:absolute;
  right:219px;
  top:44px;
  font-size:24px;
  font-weight:600
}
.instagram {
  position:absolute;
  left:78px;
  top:30px;
  display:flex;
  direction:ltr;
  gap:24px;
  align-items:center
}
.instagram span {
  padding:10px 20px;
  background:white;
  border-radius:15px;
  color:var(--navy);
  font-size:24px;
  font-weight:600;
  direction:rtl
}
dialog {
  border:0;
  padding:0;
  background:transparent;
  max-width:none;
  max-height:none;
  overflow:visible;
  margin:auto;
  color:#000
}
dialog::backdrop {
  background:#0006;
  backdrop-filter:blur(4px)
}
#quiz-dialog {
  position:fixed;
  inset:0;
  width:max-content;
  height:max-content;
  margin:auto
}
#expense-dialog {
  width:691px
}
.quiz-panel {
  width:1200px;
  background:white;
  border-radius:80px;
  padding:96px;
  position:relative
}
.quiz-intro {
  width:1000px;
  padding:64px;
  border-radius:60px;
  background:white;
  color:var(--navy)
}
.quiz-intro h2 {
  margin-top:40px;
  font-size:40px;
  line-height:58px
}
.intro-description {
  margin-top:20px;
  font-size:24px;
  line-height:40px
}
.profile-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 32px;
  margin-top:32px
}
.profile-grid .field {
  gap:8px
}
#quiz-phone,#quiz-age {
  font-family:PelakFA,Pelak,sans-serif
}
.profile-gender {
  margin:0;
  padding:0;
  border:0;
  min-width:0;
  font-size:20px;
  font-weight:600;
  line-height:45px
}
.profile-gender legend {
  padding:0;
  margin-bottom:8px
}
.gender-options {
  display:flex;
  gap:16px;
  height:67px
}
.gender-options label {
  display:flex;
  gap:16px;
  align-items:center;
  flex:1;
  padding:0 20px;
  border:1px solid var(--border);
  border-radius:20px;
  cursor:pointer
}
.gender-options label:has(input:checked) {
  border-color:var(--navy);
  background:#f2f4f7
}
.gender-options input {
  appearance:none;
  margin:0;
  width:24px;
  height:24px;
  border:2px solid var(--navy);
  border-radius:50%
}
.gender-options input:checked {
  background:var(--navy);
  box-shadow:inset 0 0 0 4px white
}
.profile-error {
  display:block;
  min-height:28px;
  font-size:18px;
  font-weight:400;
  line-height:28px;
  color:#b71728
}
.profile-grid [aria-invalid=true] {
  border-color:var(--red)
}
.profile-note,.preview-note {
  font-size:18px;
  line-height:30px;
  margin-top:16px;
  color:#5c6370
}
.profile-start {
  margin-top:24px;
  font-size:24px
}
.preview-note {
  text-align:center
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.quiz-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:16px
}
.quiz-top button {
  font-size:16px;
  background:none;
  padding:0
}
.quiz-progress {
  height:11px;
  border-radius:20px;
  background:var(--surface);
  margin-top:30px;
  direction:ltr;
  overflow:hidden
}
.quiz-progress>span {
  display:block;
  height:100%;
  border-radius:20px;
  background:var(--navy)
}
.quiz-question {
  font-size:36px;
  font-weight:600;
  line-height:52px;
  margin-top:60px;
  min-height:104px
}
.quiz-answers {
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:30px
}
.quiz-option {
  font-family:PelakFA,Pelak,sans-serif;
  display:flex;
  align-items:center;
  gap:24px;
  justify-content:flex-start;
  font-size:24px;
  line-height:35px;
  cursor:pointer;
  position:relative
}
.quiz-option input {
  appearance:none;
  flex:none;
  width:33px;
  height:33px;
  border:2px solid var(--red);
  border-radius:7px;
  margin:0;
  background:white;
  cursor:pointer
}
.quiz-option input:checked {
  background:var(--red)
}
.quiz-option input:focus-visible {
  outline:3px solid var(--navy);
  outline-offset:4px
}
.quiz-next {
  margin-top:70px;
  height:65px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:20px;
  background:var(--surface);
  font-size:24px;
  font-weight:600
}
.quiz-next img {
  width:26px;
  height:26px
}
.quiz-next:disabled {
  cursor:default;
  color:black;
  opacity:1
}
.quiz-next:enabled {
  background:var(--red);
  color:#fff
}
.quiz-next:enabled img {
  filter:brightness(0) invert(1)
}
.golden-question {
  --gold:#ca9e0d;
  background:#000;
  color:#fff;
  border-radius:0
}
.golden-question .quiz-top button {
  color:#fff
}
.golden-question .golden-label {
  color:var(--gold);
  font-weight:700
}
.golden-question .quiz-progress,
.golden-question .quiz-progress>span {
  background:var(--gold)
}
.golden-question .quiz-option input {
  border-color:var(--gold);
  background:#000
}
.golden-question .quiz-option input:checked {
  background:var(--gold)
}
.golden-question :focus-visible {
  outline-color:var(--gold)
}
.golden-question .quiz-next {
  background:var(--gold);
  color:#000
}
.golden-question .quiz-next img {
  filter:brightness(0)
}
.card-reveal {
  width:1200px;
  height:955px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:48px
}
.card-deck {
  width:400px;
  height:570px;
  position:relative;
  perspective:1200px
}
.reveal-card {
  position:absolute;
  width:100%;
  height:100%;
  border-radius:7%;
  object-fit:contain;
  box-shadow:0 18px 45px #0003;
  transform-origin:50% 80%;
  animation:card-shuffle 2.8s ease-in-out both
}
.reveal-card-0 {
  --spread:-160px;
  --tilt:-18deg
}
.reveal-card-1 {
  --spread:160px;
  --tilt:18deg;
  animation-delay:80ms
}
.reveal-card-2 {
  --spread:0px;
  --tilt:0deg;
  animation-delay:160ms
}
.card-reveal p {
  color:#fff;
  font-size:28px;
  font-weight:600;
  text-shadow:0 2px 12px #0006
}
@keyframes card-shuffle {
  0% { transform:translateY(35px) scale(.9); opacity:0 }
  15% { transform:translateY(0) scale(1); opacity:1 }
  35%,65% { transform:translateX(var(--spread)) rotate(var(--tilt)); opacity:1 }
  48% { transform:translateX(calc(var(--spread) * -.35)) rotate(calc(var(--tilt) * -.3)) translateY(-25px) }
  82% { transform:translateX(0) rotate(0); opacity:1 }
  100% { transform:translateY(-15px) rotateY(90deg); opacity:0 }
}
.intermission {
  width:1200px;
  height:825px;
  position:relative;
  border-radius:80px;
  overflow:hidden;
  background:#fdd8ab
}
.intermission>img.scene {
  position:absolute;
  object-fit:cover
}
.intermission.first>img.scene {
  width:934px;
  height:1167px;
  left:133px;
  top:-322px
}
.intermission.second>img.scene {
  width:1200px;
  height:1500px;
  left:0;
  top:-572px
}
.intermission .bubble {
  position:absolute
}
.intermission .bubble p {
  position:absolute;
  inset:12px 10px auto;
  font-size:32px;
  line-height:46.72px;
  color:white;
  font-weight:700;
  text-align:center
}
.intermission .bubble img {
  width:100%;
  height:100%
}
.intermission .bubble-right {
  left:813px;
  top:61px;
  width:315px;
  height:154px
}
.intermission .bubble-right p {
  top: 26px;
  right: 16px;
  text-align: right;
  white-space: pre;
}
.intermission .bubble-left {
  left:218px;
  top:61px;
  width:283px;
  height:148px
}
.intermission .bubble-left p {
  top: 20px;
  right: 39px;
  text-align: right;
  white-space: pre;
}
.intermission.first .continue {
  left: 402px;
  width: 361px;
}
.intermission.second .bubble {
  left:136px;
  top:43px;
  width:299px;
  height:179.634px
}
.intermission.second .bubble p {
  font-size:28.598px;
  font-weight:600;
  line-height:41.75px;
  top:22px
}
.intermission .continue {
  position:absolute;
  top:666px;
  left:415px;
  width:369px;
  height:77px;
  background:black;
  color:white;
  border-radius:20px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:600
}
.intermission .continue img {
  width:47px;
  height:47px
}
.expense-modal {
  width:691px;
  min-height:454px;
  padding:40px 38px;
  background:white;
  border-radius:60px
}
.expense-modal header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:20px
}
.expense-modal header h3 {
  font-size:24px;
  line-height:35px
}
.expense-modal .close {
  background:none;
  padding:0;
  order:3
}
.expense-modal .close img {
  width:36px;
  height:36px
}
.expense-modal>p {
  font-size:20px;
  margin-top:50px
}
.share-options {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
  min-height:120px;
  align-content:start
}
.share-options button {
  border-radius:10px;
  padding:5px 10px;
  line-height:45px;
  font-size:20px;
  display:flex;
  gap:10px;
  align-items:center;
  background:var(--surface)
}
.share-options button[aria-pressed=true] {
  background:var(--navy);
  color:white
}
.share-options img {
  width:24px;
  height:24px
}
.expense-modal .save {
  margin-top:0
}
.toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  background:var(--navy);
  color:white;
  padding:14px 24px;
  border-radius:16px;
  font-size:18px;
  z-index:9;
  max-width:80vw;
  text-align:center
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}

.mobile-cta-text,.mobile-footer-text,.mobile-footer-brand { display:none }

/* Mobile Figma frame 1406:1136, measured at 390 px.
   Keep one content tree: mobile layout replaces the desktop canvas geometry. */
@media (max-width:767px) {
  html { scrollbar-width:none }
  .desktop { width:100%; zoom:1; max-width:480px }
  .header { height:107.669px }
  .brand { right:40px; top:33px }
  .brand img { width:57px; height:auto }
  .header nav { display:none }
  .header-signup { left:40px; top:30px; width:80px; height:27.669px; border-radius:6.485px; font-size:10px }
  .hero { height:299px }
  .hero h1 { font-size:18px; line-height:26px; padding-inline:16px }
  .hero-description { top:33.094px; width:251.724px; max-width:calc(100% - 40px); left:50%; transform:translateX(-50%); font-size:13px; line-height:19px }
  .hero-art { width:269.333px; height:202px; left:50%; transform:translateX(-50%); top:97px }
  .hero-shadow { width:336.063px; max-width:calc(100% - 32px); height:30.194px; left:50%; transform:translateX(-50%); top:262.464px }
  .hero-cta { top:83.791px; left:50%; transform:translateX(-50%); width:140.798px; height:25.449px; border-radius:5.281px; gap:7.041px; font-size:12px; font-weight:400 }
  .hero-cta img { width:12.674px; height:12.674px }
  .desktop-cta-text { display:none }
  .mobile-cta-text { display:inline }
  .about { width:calc(100% - 80px); margin:50px auto 0; height:470px }
  .about-label { right:0; top:0; width:60.203px; height:17px; padding:1px 0 0; border-radius:5.384px 0 0 5.384px; font-size:10px; font-weight:400; line-height:15px }
  .about h2 { right:0; top:33px; font-size:12px; line-height:17px; white-space:nowrap }
  .about-description { right:0; top:78px; width:60.44%; font-size:11px; line-height:15px; color:#303030 }
  .phone-art { left:-17px; top:62px; width:135.217px; height:147.96px }
  .home-art { left:-12.83px; top:148px; width:76.198px; height:58.938px }
  .benefits { top:221px; left:0; width:100%; grid-template-columns:1fr; gap:6px }
  .benefits article { background:white; height:79px; border-radius:10.767px; padding:13px 11px 10px; box-shadow:0 0 2.692px #0000000d; text-align:right }
  .benefits h3 { height:auto; font-size:11px; line-height:16px }
  .benefits h3 br { display:none }
  .benefits h3 br::after { content:' ' }
  .benefits p,.benefits article:first-child p { height:auto; font-size:10px; line-height:14.6px; padding:0; margin-top:8px; background:none; border-radius:0; box-shadow:none; color:#303030 }
  .quiz-banner { width:calc(100% - 80px); height:198px; margin-top:50px; border-radius:21.4px }
  .quiz-art { left:calc(50% - 51px); top:5px; width:93.893px; height:93.893px }
  .banner-glow { left:calc(50% - 62px); top:0; width:39.055px; height:38.52px; filter:blur(26.75px) }
  .banner-shadow { width:146.323px; height:83.728px; left:calc(50% - 77.75px); top:34.25px }
  .quiz-banner h2 { top:103px; right:0; width:100%; text-align:center; font-size:18px; line-height:26px }
  .quiz-banner>p { top:131.738px; right:0; width:100%; text-align:center; font-size:10px; line-height:15px; font-weight:400 }
  .quiz-start { right:25px; top:159px; width:calc(100% - 50px); height:21.42px; border-radius:7px; font-size:10px; font-weight:600; gap:5.35px }
  .quiz-start img { width:9.63px; height:9.63px }
  .calculator { width:calc(100% - 80px); margin-top:50px; min-height:0; display:block }
  .calculator aside { width:100%; height:233px; position:relative }
  .calculator aside h2 { font-size:18px; line-height:26px }
  .calculator aside h2 br,.calculator aside p br { display:none }
  .calculator aside p { margin-top:16px; font-size:11px; line-height:15px; white-space:nowrap }
  .calculator aside img { position:absolute; width:213px; height:160px; top:73px; left:calc(50% - 106px); margin:0 }
  .calc-card { width:100%; min-height:354px; padding:16px; border-radius:24.093px; box-shadow:0 0 4px #0000000d }
  .calc-card h3 { font-size:12px; line-height:18.07px }
  .calc-card .calc-body { margin-top:16px }
  .expense-row { grid-template-columns:minmax(0,1fr); gap:7.7px; margin-bottom:12px }
  .field { font-size:9px; line-height:18.07px; gap:4.82px }
  .field input { height:27.834px; padding:4px 8px; font-size:10px; line-height:18.07px; border-width:.5px; border-radius:8.031px }
  .money-field input { padding-left:42px }
  .money-field span { width:34.132px; height:27.834px; border-radius:8px 0 0 8px; font-size:9.637px }
  .calc-button { height:25.699px; gap:4px; border-radius:8px; font-size:10px; line-height:18.07px }
  .calc-button img { width:9.637px; height:9.637px }
  .expense-total { margin-top:18.3px; font-size:9px; line-height:18.07px }
  .calc-next { margin-top:21px }
  .calc-card[data-step=people],.calc-card[data-step=shares] { min-height:0; padding:16px }
  .calc-heading { gap:8px }
  .people-count { padding:3px 8px; border-radius:6px; font-size:10px; white-space:nowrap }
  .people-list { margin-top:16px; min-height:24px; gap:6px }
  .person-chip { gap:8px; padding:3px 8px; line-height:22px; font-size:12px; border-radius:7px }
  .person-chip img { width:14px; height:14px }
  .add-person { margin-top:20px; gap:10px }
  .add-person .calc-button { width:106px; height:28px }
  .people-next,.split-next { margin-top:24px }
  .back { font-size:10px; line-height:20px }
  .calc-intro { margin-top:10px; font-size:10px; line-height:18px }
  .split-list { margin-top:16px }
  .split-item { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 52px; gap:8px; min-height:52px; font-size:10px; overflow-wrap:anywhere }
  .split-item:last-child { min-height:52px }
  .split-item strong { font-size:12px }
  .edit-button { height:28px; gap:4px; border-radius:8px; font-size:10px }
  .edit-button img { width:10px; height:10px }
  .settlement-card>img { width:120px }
  .settlement-card h3 { font-size:20px; line-height:30px; margin-top:12px }
  .settlement-summary { font-size:12px; line-height:24px; padding:4px 10px; margin-top:10px; border-radius:8px }
  .transfers { margin-top:24px }
  .transfer { gap:10px; min-height:50px; font-size:12px; line-height:24px }
  .transfer b { font-size:16px }
  .transfer:last-child { min-height:30px }
  .copy-transfers { margin-top:24px }
  .signup { width:calc(100% - 80px); height:auto; min-height:389px; margin-top:50px; border-radius:20.261px; padding:165px 16px 22px; text-align:center }
  .gift-art { left:calc(50% - 57.5px); top:21px; width:115px; height:115px }
  .signup h2 { position:static; font-size:12px; line-height:18px }
  .signup-description { position:static; width:100%; font-size:10px; line-height:14.6px; margin-top:11px }
  .signup form { position:static; display:flex; flex-direction:column; gap:10.17px; margin-top:13px }
  .signup input { width:100%; height:27.83px; border-radius:5.065px; border-width:.5px; font-size:9px; font-weight:500; padding:4px 8px; text-align:center }
  .signup input::placeholder { color:#303030 }
  .signup button { height:25.7px; padding:2px 8px; font-size:10px; border-radius:5.065px }
  .signup-note { position:static; width:179px; max-width:100%; margin:12.3px auto 0; font-size:9px; line-height:13.14px; text-align:right }
  .form-status { position:static; font-size:11px; margin-top:8px }
  .form-status:empty { display:none }
  .desktop footer { margin-top:50px; height:135px; padding:22px 20px; display:flex; flex-direction:column; align-items:center; gap:6px; background:#111e33 }
  .footer-brand { display:none }
  .mobile-footer-brand { display:block; font-size:19px; font-weight:700; line-height:33px }
  .desktop footer>p { position:static; font-size:13px; font-weight:400; line-height:23px }
  .instagram { position:static; display:block }
  .instagram img,.instagram .desktop-footer-text { display:none }
  .instagram .mobile-footer-text { display:inline; padding:0; border-radius:0; background:none; color:white; font-size:13px; font-weight:400; line-height:23px }

  /* Flowing dialogs keep form fields and answers readable on a phone. */
  body:has(dialog[open]) { overflow:hidden }
  #quiz-dialog,#expense-dialog { width:calc(100vw - 32px); max-width:540px; max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; border-radius:24px }
  #quiz-dialog[data-view=intermission] { width:max-content; max-width:none; max-height:none; overflow:visible; border-radius:0 }
  .quiz-panel,.quiz-intro { width:100%; padding:24px; border-radius:24px; min-height:0!important }
  .quiz-top,.quiz-top button { font-size:11px }
  .quiz-progress { margin-top:18px; height:5px }
  .quiz-question { margin-top:28px; font-size:19px; line-height:30px; min-height:0!important }
  .quiz-question br { display:none }
  .quiz-answers { margin-top:24px; gap:20px }
  .quiz-option { gap:12px; font-size:14px; line-height:24px; align-items:flex-start }
  .quiz-option input { width:22px; height:22px; margin-top:2px; border-radius:5px; border-width:1.5px }
  .quiz-next { height:44px; margin-top:30px; border-radius:10px; font-size:15px }
  .quiz-next img { width:18px; height:18px }
  .golden-question { border-radius:0 }
  .quiz-intro h2 { margin-top:24px; font-size:24px; line-height:36px }
  .intro-description { margin-top:12px; font-size:14px; line-height:25px }
  .profile-grid { grid-template-columns:1fr 1fr; gap:10px 12px; margin-top:20px }
  .profile-grid .field { font-size:12px; line-height:22px; gap:5px }
  .profile-grid .field:first-child,.profile-grid .field:nth-child(2) { grid-column:1/-1 }
  .profile-grid input { font-size:16px; height:42px; border-radius:10px }
  .profile-gender { font-size:12px; line-height:22px }
  .profile-gender legend { margin-bottom:5px }
  .gender-options { height:42px; gap:6px }
  .gender-options label { padding:0 8px; gap:6px; border-radius:10px }
  .gender-options input { width:16px; height:16px; border-width:1px }
  .gender-options input:checked { box-shadow:inset 0 0 0 3px white }
  .profile-error { min-height:0; font-size:11px; line-height:18px }
  .profile-error:empty { display:none }
  .profile-note,.preview-note { margin-top:12px; font-size:11px; line-height:20px }
  .profile-start { margin-top:16px; height:44px; font-size:15px }
  .profile-start img { width:18px; height:18px }
  .expense-modal { width:100%; min-height:0; padding:24px; border-radius:24px }
  .expense-modal header { font-size:12px; gap:12px }
  .expense-modal header h3 { font-size:16px; line-height:24px }
  .expense-modal .close img { width:24px; height:24px }
  .expense-modal>p { font-size:14px; margin-top:24px }
  .share-options { margin-top:16px; min-height:96px; gap:8px }
  .share-options button { font-size:14px; line-height:28px; padding:4px 10px; gap:8px }
  .share-options img { width:18px; height:18px }
  .expense-modal .save { height:44px; font-size:14px }
  .card-reveal { width:100%; height:min(540px,calc(100dvh - 32px)); gap:28px }
  .card-deck { width:210px; height:300px }
  .reveal-card-0 { --spread:-45px; --tilt:-12deg }
  .reveal-card-1 { --spread:45px; --tilt:12deg }
  .card-reveal p { font-size:18px }
  .personality-result { width:100%; padding:0; border-radius:0; background:none }
  .personality-card { width:100%; height:auto; border-radius:22px }
  .toast { bottom:20px; font-size:13px; padding:10px 16px }
}
@media (max-width:359px) {
  .header-signup { left:24px }
  .brand { right:24px }
  .about,.quiz-banner,.calculator,.signup { width:calc(100% - 48px) }
  .hero h1 { font-size:16px }
  .about-description { font-size:10px; line-height:14px; width:59% }
  .about h2 { font-size:11px }
  .phone-art { width:118px; height:auto; top:70px }
  .home-art { width:68px; height:auto }
  .benefits article { padding-inline:9px }
  .benefits h3 { font-size:10px }
  .benefits p { font-size:9px }
  .quiz-banner h2 { font-size:16px }
  .quiz-banner>p { font-size:9px }
  .calculator aside p { font-size:10px }
  .quiz-panel,.quiz-intro { padding:20px }
  .quiz-question { font-size:18px }
  .profile-grid { grid-template-columns:1fr }
  .profile-grid .field:first-child,.profile-grid .field:nth-child(2) { grid-column:auto }
}

/* The card is displayed at viewport size, outside the scaled desktop canvas. */
.personality-result { position:relative; width:max-content; max-width:calc(100vw - 48px); padding:0; background:none; border-radius:0 }
.personality-card { width:auto; height:min(760px,calc(100dvh - 120px),calc((100vw - 48px)*1.4275)); margin-inline:auto; border-radius:24px }
.result-close { position:absolute; left:8px; top:8px; width:32px; height:32px; border-radius:50%; background:white; color:var(--navy); font-size:24px; line-height:32px }
.result-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px }
.result-actions .button { height:48px; padding:0 12px; font-size:16px; border-radius:12px }
.result-sheet { width:min(600px,calc(100vw - 48px)); max-height:calc(100dvh - 48px); overflow:auto; padding:32px; border-radius:28px; background:white; color:var(--navy); text-align:center }
.result-sheet h2 { font-size:24px; line-height:36px }
.result-sheet p { font-size:18px; line-height:34px; margin-top:20px }
.result-sheet .button { height:48px; width:100%; margin-top:16px; font-size:16px }
@media(max-width:767px) {
  #quiz-dialog[data-view=result] { width:max-content; max-width:calc(100vw - 32px); border-radius:0; overflow:visible }
  .personality-result { max-width:calc(100vw - 32px) }
  .personality-card { height:min(760px,calc(100dvh - 112px),calc((100vw - 32px)*1.4275)) }
  .result-actions { gap:8px; margin-top:12px }
  .result-actions .button { height:44px; font-size:12px; padding:0 8px }
  .result-sheet { width:100%; padding:24px }
  .result-sheet h2 { font-size:22px }
  .result-sheet p { font-size:15px; line-height:28px }
}
