/* Shared by the home page, sign-in, sign-up, pricing, contact and e-mail confirmation: the sign-in card, plan columns, FAQ, the closing band and the form card. */

/* ----- sign-in card, sign-up below it ----- */
.auth { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--vd); border-radius: 4px 4px 14px 14px; box-shadow: 0 24px 40px -28px rgba(10, 46, 43, .5); max-width: 560px; }
.ap + .ap { border-top: 1px solid var(--line); }
.ap-h { margin: 0; font: inherit; }
.ap-t { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: transparent; border: 0; font: 700 1.25rem/1.2 var(--f-display); color: var(--ink); text-align: start; cursor: pointer; border-radius: 0; }
.ap-t:hover { background: var(--paper-2); }
.ap-t em { font-style: normal; font-weight: 500; color: var(--muted); font-family: var(--f-text); font-size: 1rem; margin-inline-end: 6px; }
.ap-t .ic { width: 22px; height: 22px; transition: transform .25s var(--ease); color: var(--vd); }
.ap[data-open="true"] .ap-t .ic { transform: rotate(90deg); }
:root[dir="rtl"] .ap[data-open="true"] .ap-t .arr { transform: scaleX(-1) rotate(90deg); }
#signup[data-open="true"] .ap-t .ic { transform: rotate(45deg); }
.ap-b { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.ap-i { overflow: hidden; min-height: 0; }
.ap-i > * { padding: 4px 20px 20px; }
.ap-i h3 { font-size: 1.3rem; margin-bottom: 4px; } .ap-i .intro { margin: 0 0 6px; color: var(--muted); }
@media (scripting: enabled) {
  .ap[data-open="false"] .ap-b { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }
}
.auth .btn { min-height: 48px; }
.auth .done { padding: 4px 20px 20px; }
.auth .f[hidden], .auth .done[hidden] { display: none; }

/* ----- plans (home and pricing page) ----- */
.price-s { padding: clamp(48px, 7vw, 96px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.switch { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 15px/1.3 var(--f-text); color: var(--ink); cursor: pointer; } .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 4px; }
.plan.pop { border-color: var(--ink); box-shadow: 0 30px 50px -36px rgba(10, 46, 43, .55); }
.ptag { min-height: 26px; } .ptag:not(:empty) { align-self: flex-start; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 13px; padding: 2px 12px; border-radius: 6px; }
.plan h3 { font-size: 1.9rem; } .tagline { margin: 2px 0 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .price .amt { font: 800 3.4rem/1 var(--f-display); font-stretch: 80%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .price small { color: var(--muted); font-size: 1rem; }
.per { color: var(--muted); font-size: 14px; margin: 4px 0 18px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; } .plan li { display: flex; gap: 10px; padding: 4px 0; font-size: 15.5px; line-height: 1.5; } .plan li .tick { margin-top: .2em; }
.nofree { margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ----- FAQ and closing band ----- */
.faq { padding: clamp(48px, 7vw, 96px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); }
.faqs details, .measure details { border-top: 1px solid var(--ink); } .faqs details:last-child, .measure details:last-child { border-bottom: 1px solid var(--ink); }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; } summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); } details p { margin: 0 0 20px; color: var(--muted); max-width: 42em; }
.cta { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0; } .cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 12em; } .cta p { margin: 12px 0 0; color: var(--muted-dark); } .cta-b { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- inner pages that use the form card ----- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.formcard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--vd); border-radius: 4px 4px 14px 14px; padding: 26px; box-shadow: 0 24px 40px -28px rgba(10, 46, 43, .5); }

.ticks { list-style: none; padding: 0; margin: 24px 0 18px; display: grid; gap: 12px; } .ticks li { display: flex; gap: 12px; align-items: flex-start; } .ticks .tick { margin-top: .22em; }

/* ----- section heads (also used by the pricing and FAQ blocks on the home page) ----- */
.shead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(26px, 4vw, 48px); }
.shead h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); font-stretch: 76%; line-height: 1; max-width: 12em; }
:root:is(:lang(ar), :lang(ckb)) .shead h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.4; } :root:lang(ur) .shead h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.9; }
.shead .lead { margin: 0; }
.shead.dark h2 { color: #fff; } .shead.dark .lead { color: var(--muted-dark); }
:is(.faq, .cta) h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-stretch: 76%; line-height: 1; }
:root:is(:lang(ar), :lang(ckb)) :is(.faq, .cta) h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.4; } :root:lang(ur) :is(.faq, .cta) h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); line-height: 1.9; }
.lnk-d { color: #fff; font-weight: 600; align-self: center; }

@media (max-width: 1020px) { .signup, .faq-grid { grid-template-columns: minmax(0, 1fr); } .shead { grid-template-columns: minmax(0, 1fr); } .auth { max-width: none; } }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } .formcard { padding: 20px 16px; } .ap-t { padding-inline: 16px; } .ap-i > * { padding-inline: 16px; } }

/* without scripts the password reveal and the billing switch do nothing, so they are removed */
html:not(.js) :is(.eye, .switch) { display: none; }
