/* ============ ACCOUNT + ONBOARDING ============ */
.account-section{
  padding:34px 0 112px;
  background:var(--paper-2);
  border-top:1px solid var(--line);
}
.account-layout{
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:24px;
  align-items:start;
}
.account-panel,
.account-card{
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius);
  padding:28px;
}
.account-panel{
  display:grid;
  gap:22px;
}
.account-card{
  display:grid;
  gap:18px;
}
.account-kicker{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--mute);
}
.account-panel h2,
.account-card h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:34px;
  line-height:1.06;
  letter-spacing:0;
  margin:0;
}
.account-panel h2 em,
.account-card h2 em{color:var(--amber)}
.account-copy{
  color:var(--ink-3);
  font-size:15.5px;
  line-height:1.6;
  margin:0;
}
.account-form{
  display:grid;
  gap:12px;
}
.password-fields{
  display:grid;
  gap:12px;
}
.account-form label{
  display:grid;
  gap:7px;
}
.account-form label span{
  font-family:var(--mono);
  font-size:11px;
  color:var(--ink-3);
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.account-form input{
  font-family:var(--sans);
  font-size:15px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:8px;
  padding:12px 13px;
  outline:none;
}
.account-form input:focus{
  border-color:var(--amber);
  box-shadow:0 0 0 3px rgba(31,122,77,0.12);
}
.account-status{
  display:grid;
  gap:10px;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  border:1px solid var(--line-2);
  border-radius:999px;
  padding:8px 11px;
  font-family:var(--mono);
  font-size:11px;
  color:var(--ink-2);
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.status-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--mute);
}
.status-pill.is-active::before{background:var(--moss)}
.status-pill.is-warn::before{background:var(--amber)}
.plan-actions,
.account-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.account-consent{
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:var(--ink-3);
  font-size:13px;
  line-height:1.45;
}
.account-consent input{
  margin-top:2px;
  accent-color:var(--amber);
}
.account-consent a{
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:3px;
}
.plan-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.plan-choice{
  border:1px solid var(--line-2);
  background:var(--paper);
  border-radius:var(--radius);
  padding:18px;
  display:grid;
  gap:12px;
}
.plan-choice.is-selected{
  border-color:rgba(31,122,77,0.55);
  box-shadow:0 0 0 3px rgba(31,122,77,0.10);
}
.plan-choice h3{
  font-size:17px;
  margin:0;
}
.plan-choice p{
  margin:0;
  color:var(--ink-3);
  font-size:13.5px;
  line-height:1.45;
}
.limit-list{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.limit-list li{
  color:var(--ink-3);
  font-size:12.5px;
  line-height:1.35;
  border-top:1px dashed var(--line-2);
  padding-top:7px;
}
.plan-price{
  font-family:var(--serif);
  font-size:30px;
  line-height:1;
}
.plan-price span{
  font-family:var(--sans);
  color:var(--mute);
  font-size:13px;
}
.account-log{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.account-log li{
  border-top:1px dashed var(--line-2);
  padding-top:10px;
  color:var(--ink-3);
  font-size:14px;
  line-height:1.45;
}
.account-muted{
  color:var(--mute);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.02em;
  margin:0;
}
.checkout-fineprint{
  max-width:58ch;
  color:var(--ink-3);
  font-size:13px;
  line-height:1.5;
  margin:0;
}
.checkout-fineprint a{
  color:var(--ink);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.account-switch{
  width:max-content;
  max-width:100%;
  border:0;
  background:transparent;
  color:var(--ink);
  padding:2px 0;
  font:inherit;
  font-size:13px;
  font-weight:600;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:4px;
}
.code-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.device-list{
  display:grid;
  gap:10px;
}
.device-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border-top:1px dashed var(--line-2);
  padding-top:12px;
}
.device-row b{
  display:block;
  font-size:14.5px;
  color:var(--ink);
  margin-bottom:4px;
}
.device-row span{
  display:block;
  color:var(--ink-3);
  font-size:13px;
  line-height:1.4;
}
.device-row .btn{
  padding:8px 12px;
  min-height:0;
}
.code-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.code-entry input{
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-family:var(--mono);
}
.is-hidden{display:none!important}

body:not(.is-checkout-code) [data-code-form]{
  display:none!important;
}
body.is-checkout-intent .page-hero{
  padding-bottom:42px;
}
body.is-checkout-intent .account-section{
  padding-top:28px;
}
body.is-checkout-intent .account-layout{
  grid-template-columns:minmax(0,680px);
  justify-content:center;
}
body.is-checkout-intent .account-panel{
  gap:20px;
  padding:clamp(28px,5vw,46px);
  box-shadow:0 18px 70px rgba(42,34,25,0.08);
}
body.is-checkout-intent .account-panel h2{
  max-width:11ch;
  font-size:clamp(38px,6vw,56px);
}
body.is-checkout-intent .account-copy{
  max-width:48ch;
}
body.is-checkout-intent .account-form input{
  min-height:52px;
  font-size:16px;
}
body.is-checkout-intent .account-form .btn{
  min-height:52px;
}
body.is-checkout-intent .password-fields{
  display:grid;
}
body.is-checkout-intent.is-checkout-signin [data-confirm-password-field]{
  display:none;
}
body.is-checkout-code [data-signin-form]{
  display:none!important;
}
body.is-checkout-code:not(.is-authed) [data-code-form]{
  display:grid!important;
}
body.is-checkout-intent .account-switch[data-auth-mode-toggle]{
  display:inline-block!important;
}
body.is-checkout-intent [data-plan-grid],
body.is-checkout-intent [data-checkout-card] .account-kicker,
body.is-checkout-intent [data-checkout-card] .plan-actions a,
body.is-checkout-intent [data-linking-card],
body.is-checkout-intent .account-card[data-when-authed]{
  display:none!important;
}
body.is-checkout-intent:not(.is-authed) [data-checkout-card]{
  display:none!important;
}

@media (max-width:980px){
  .account-layout,
  .plan-grid{grid-template-columns:1fr}
}
@media (max-width:620px){
  .account-panel,
  .account-card{padding:22px}
  .device-row,
  .code-entry{grid-template-columns:1fr}
}

/* Social sign-in (Google + Microsoft) — sits above the email form on
   account.html + link-device.html. Buttons reuse the .btn base from
   styles.css but invert the primary styling: light fill, dark border,
   provider-logo SVG on the left. The divider below carries the "or
   continue with email" affordance. */
.social-signin{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.btn-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--paper, #fff);
  color: var(--ink, #111);
  border: 1px solid var(--ink, #111);
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 4px;
  width: 100%;
}
.btn-social:hover{
  background: #f6f6f6;
}
.btn-social:focus-visible{
  outline: 2px solid var(--amber-deep, #c47a14);
  outline-offset: 2px;
}
.btn-social .provider-icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.social-divider{
  display: flex;
  align-items: center;
  text-align: center;
  color: #777;
  font-size: 12px;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.social-divider::before,
.social-divider::after{
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}
.social-divider span{
  padding: 0 12px;
}
